summaryrefslogtreecommitdiff
path: root/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging.c b/logging.c
index dcadb26..944dc91 100644
--- a/logging.c
+++ b/logging.c
@@ -203,7 +203,7 @@ int logline(char *str, char *ournick, char *basedir, int type) {
debugprint("logline(): Complete log string to write: '%s', length '%ld'.\n", line, strlen(line));
// Write complete line to file
- if ((bytes = fprintf(fp, line)) < 0) {
+ if ((bytes = fprintf(fp, "%s", line)) < 0) {
printf("error: could not write to log file.\n");
exit(1);
}