From 0c1f181ff857e2e25cdf45b9fcba21242c3f83b1 Mon Sep 17 00:00:00 2001 From: mcpcpc Date: Mon, 14 Sep 2020 17:22:10 -0400 Subject: fix logged output --- kirc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kirc.c') diff --git a/kirc.c b/kirc.c index 8429375..76dcc9f 100644 --- a/kirc.c +++ b/kirc.c @@ -37,7 +37,7 @@ log_append(char *str, char *path) { FILE *out = fopen(path, "a"); - fprintf(out, "%s", str); + fprintf(out, "%s\n", str); fclose(out); } @@ -105,7 +105,7 @@ printw(const char *format, ...) { } } - printf("\n"); + putchar('\n'); } static void -- cgit v1.2.3