diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-24 12:18:47 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-24 12:18:47 +0100 |
commit | e94aa7fe8f39dbff77866fa86267061dbc71e53a (patch) | |
tree | 2628122d71394a8573bdb537538d55d7fc1a7b66 | |
parent | c804222a3de6432641d52b4bbbffa4b3b629b598 (diff) |
GetPlayerInfo: fscanf: fixed incorrect format
-rw-r--r-- | FICS/makerank.c | 6 |
1 files changed, 3 insertions, 3 deletions
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), |