From e94aa7fe8f39dbff77866fa86267061dbc71e53a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Nov 2024 12:18:47 +0100 Subject: GetPlayerInfo: fscanf: fixed incorrect format --- FICS/makerank.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS') diff --git a/FICS/makerank.c b/FICS/makerank.c index 57956ed..d590818 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -51,9 +51,9 @@ GetPlayerInfo(char *fileName, ENTRY *e) fgets(line, 99, fp); fgets(line, 99, fp); - if (fscanf(fp, "%u %*u %*u %*u %u %*u %*u %*u %*u %u %*u %*u " - "%*u %u %*u %*u %*u %*u %u %*u %*u %*u %u %*u %*u %*u %*u " - "%u %*u %*u %*u %u %*u %*u %*u %*u", + if (fscanf(fp, "%d %*u %*u %*u %d %*u %*u %*u %*u %d %*u %*u " + "%*u %d %*u %*u %*u %*u %d %*u %*u %*u %d %*u %*u %*u %*u " + "%d %*u %*u %*u %d %*u %*u %*u %*u", &(e->r[0].num), &(e->r[0].rating), &(e->r[1].num), -- cgit v1.2.3