summaryrefslogtreecommitdiff
path: root/replay.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-19 16:28:11 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-19 16:28:11 +0100
commit1b3539a50d29a8956aa0bd2e668681e8afb968c0 (patch)
treec390d76bf35c948625e8d63e53aa04f54ae1b2ad /replay.c
parent58db24681d7b27faed5340c2195119f0d7c7a97f (diff)
Announce the start and end of log replay. Also ensure log replay lines finish with CRLF when writing.
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