aboutsummaryrefslogtreecommitdiffstats
path: root/kirc.c
diff options
context:
space:
mode:
authormcpcpc <michaelczigler@icloud.com>2020-09-14 17:22:10 -0400
committermcpcpc <michaelczigler@icloud.com>2020-09-14 17:22:10 -0400
commit0c1f181ff857e2e25cdf45b9fcba21242c3f83b1 (patch)
tree7cc446e51895a50d835226d354710ba7ea9eaca2 /kirc.c
parentadd guard around 'if' statement (diff)
downloadkirc-0c1f181ff857e2e25cdf45b9fcba21242c3f83b1.tar.gz
kirc-0c1f181ff857e2e25cdf45b9fcba21242c3f83b1.tar.bz2
kirc-0c1f181ff857e2e25cdf45b9fcba21242c3f83b1.tar.xz
kirc-0c1f181ff857e2e25cdf45b9fcba21242c3f83b1.tar.zst
kirc-0c1f181ff857e2e25cdf45b9fcba21242c3f83b1.zip
fix logged output
Diffstat (limited to '')
-rw-r--r--kirc.c4
1 files changed, 2 insertions, 2 deletions
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