diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-28 07:21:39 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-28 07:21:39 +0100 |
commit | fdab639b86dae514828a90a0bcf5ceefe8bbf936 (patch) | |
tree | 4c4ac1f182a0c398aea0ddceeae582c5238fee1a | |
parent | 77ece1c4cac59a535d45f2ffeb6c95c7a1ed3269 (diff) |
Added width spec
-rw-r--r-- | FICS/makerank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c index 00bac38..8815a3c 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -47,7 +47,7 @@ GetPlayerInfo(char *fileName, ENTRY *e) if (!strcmp(line, "v 1\n")) { if (fgets(line, sizeof line, fp) == NULL || - sscanf(line, "%s", e->name) != 1) { + sscanf(line, "%19s", e->name) != 1) { warnx("%s: fgets() or sscanf() error", __func__); fclose(fp); return 0; |