From 19be9464fc36ad99f19718ab983f152b55228da7 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Nov 2024 12:25:42 +0100 Subject: ReadV1PlayerFmt: fscanf: fixed incorrect format --- FICS/playerdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 7881f83..91bdbb5 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -433,9 +433,9 @@ ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *file, int version) pp->emailAddress = NULL; } - if (fscanf(fp, "%u %u %u %u %u %u %jd %u %jd %u %u %u %u %u %u %jd %u %jd " - "%u %u %u %u %u %u %jd %u %jd %u %u %u %u %u %u %jd %u %jd %u %u %u %u " - "%u %u %jd %u %jd %d\n", + if (fscanf(fp, "%d %d %d %d %d %d %jd %d %jd %d %d %d %d %d %d %jd %d %jd " + "%d %d %d %d %d %d %jd %d %jd %d %d %d %d %d %d %jd %d %jd %d %d %d %d " + "%d %d %jd %d %jd %u\n", &pp->s_stats.num, &pp->s_stats.win, &pp->s_stats.los, &pp->s_stats.dra, &pp->s_stats.rating, &ss, <ime_tmp[0], &pp->s_stats.best, &wb_tmp[0], -- cgit v1.2.3