From 7db4a1f665a36bc2ffcefc9c57245d9ac147c5fb Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 31 Jul 2025 23:29:01 +0200 Subject: Parenthesized the scan format string --- FICS/playerdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 29e8d78..29e14f4 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1721,7 +1721,7 @@ player_lastconnect(int p) _Static_assert(19 < ARRAY_SIZE(ipstr), "'ipstr' too small"); - if (fscanf(fp, "%d %19s " "%" SCNd64 " %d %19s\n", &inout, + if (fscanf(fp, ("%d %19s " "%" SCNd64 " %d %19s\n"), &inout, loginName, &lval, ®istered, ipstr) != 5) { fprintf(stderr, "FICS: Error in login info format. %s" "\n", fname); @@ -1764,7 +1764,7 @@ player_lastdisconnect(int p) _Static_assert(19 < ARRAY_SIZE(ipstr), "'ipstr' too small"); - if (fscanf(fp, "%d %19s " "%" SCNd64 " %d %19s\n", &inout, + if (fscanf(fp, ("%d %19s " "%" SCNd64 " %d %19s\n"), &inout, loginName, &lval, ®istered, ipstr) != 5) { fprintf(stderr, "FICS: Error in login info format. %s" "\n", fname); -- cgit v1.2.3