From 20183de30a7f7164ac92dbc19c4e406a37f0572a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 15 Mar 2025 15:17:38 +0100 Subject: Terminate format with newline --- FICS/obsproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS/obsproc.c') diff --git a/FICS/obsproc.c b/FICS/obsproc.c index ab74d86..283ecc3 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -997,7 +997,7 @@ FindHistory(int p, int p1, int p_game) PRIVATE char * FindHistory2(int p, int p1, int p_game, char *End, const size_t End_size) -{ // XXX +{ FILE *fpHist; char fmt[80] = { '\0' }; int index = 0; @@ -1013,7 +1013,7 @@ FindHistory2(int p, int p1, int p_game, char *End, const size_t End_size) } msnprintf(fmt, sizeof fmt, "%%d %%*c %%*d %%*c %%*d %%*s %%*s %%*d " - "%%*d %%*d %%*d %%*s %%%zus %%ld", (End_size - 1)); + "%%*d %%*d %%*d %%*s %%%zus %%ld\n", (End_size - 1)); do { if (fscanf(fpHist, fmt, &index, End, &when) != 3) -- cgit v1.2.3