aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-07-31 23:29:01 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-07-31 23:29:01 +0200
commit7db4a1f665a36bc2ffcefc9c57245d9ac147c5fb (patch)
tree7e90878ca8e066aa04aa7ed9ff2ae8abb443f0af
parent8cdc561067c1b5594ef8a74c94633a92eef8c6ac (diff)
Parenthesized the scan format stringmain
-rw-r--r--FICS/playerdb.c4
1 files changed, 2 insertions, 2 deletions
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, &registered, 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, &registered, ipstr) != 5) {
fprintf(stderr, "FICS: Error in login info format. %s"
"\n", fname);