From c5a9bc507e9724090a63cdfb3b6df13a0ff74582 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 29 May 2019 21:05:31 +0100 Subject: Ensure writes to file are unformatted strings. --- replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'replay.c') diff --git a/replay.c b/replay.c index b0b4b26..410463b 100644 --- a/replay.c +++ b/replay.c @@ -273,7 +273,7 @@ int writereplayline(char *str, char *basedir) { debugprint("Complete replay 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 replay log file.\n"); exit(1); } -- cgit v1.2.3