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. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index dcbba42..480d567 100644 --- a/config.c +++ b/config.c @@ -229,7 +229,7 @@ int createconfigfile(char *filename) { "debug = \"1\"\n"; // Write complete string to file - if ((fprintf(fp, string)) < 0) { + if ((fprintf(fp, "%s", string)) < 0) { printf("error: could not write to replay log file.\n"); exit(1); } -- cgit v1.2.3