summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-29 21:05:31 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-29 21:05:31 +0100
commitc5a9bc507e9724090a63cdfb3b6df13a0ff74582 (patch)
tree744786fb38a68342fa1ded53e263ff0c2813c134 /config.c
parent92d106733468893d921dc678296a6716ddf979a4 (diff)
Ensure writes to file are unformatted strings.
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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);
}