diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-24 12:25:42 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-24 12:25:42 +0100 |
commit | 19be9464fc36ad99f19718ab983f152b55228da7 (patch) | |
tree | 9c68fbfe6cf60ac9ccc82998dfd920f81f3b8e7b /FICS/playerdb.c | |
parent | e94aa7fe8f39dbff77866fa86267061dbc71e53a (diff) |
ReadV1PlayerFmt: fscanf: fixed incorrect format
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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], |