aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-06-09 00:37:42 +0200
committerLouis Burda <quent.burda@gmail.com>2021-06-09 00:37:42 +0200
commit78bf5d564e712cd604eb8f8ac612be5a7b4e186c (patch)
treefa48a76a940cccb7a8a2a2b58f674b3f8f205d6e /src/util.c
parentacd91305638fc2de783b22ed23b67141538e5328 (diff)
downloadenowars5-service-stldoctor-78bf5d564e712cd604eb8f8ac612be5a7b4e186c.tar.gz
enowars5-service-stldoctor-78bf5d564e712cd604eb8f8ac612be5a7b4e186c.zip
fix dump() command extra newline, added new welcome message
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index ce22c4e..8bd8448 100644
--- a/src/util.c
+++ b/src/util.c
@@ -133,7 +133,7 @@ dump(const char *filename)
if (!(f = fopen(filename, "r"))) return;
while ((nb = fread(buf, 1, sizeof(buf) - 1, f)))
- printf("%.*s\n", nb, buf);
+ printf("%.*s", nb, buf);
fclose(f);
}