summaryrefslogtreecommitdiff
path: root/replay.c
diff options
context:
space:
mode:
Diffstat (limited to 'replay.c')
-rw-r--r--replay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/replay.c b/replay.c
index a898a7b..abd55c7 100644
--- a/replay.c
+++ b/replay.c
@@ -266,6 +266,9 @@ int writereplayline(char *str, char *basedir) {
// Prepend the unixtime timestamp
snprintf(line, MAXCHAR, "%s %s", timenowstr, str);
+ // Ensure the line finishes with CRLF
+ appendcrlf(line);
+
printf("Complete replay log string to write: '%s', length '%ld'.\n", line, strlen(line));
// Write complete line to file