aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-28 07:21:39 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-28 07:21:39 +0100
commitfdab639b86dae514828a90a0bcf5ceefe8bbf936 (patch)
tree4c4ac1f182a0c398aea0ddceeae582c5238fee1a /FICS
parent77ece1c4cac59a535d45f2ffeb6c95c7a1ed3269 (diff)
Added width spec
Diffstat (limited to 'FICS')
-rw-r--r--FICS/makerank.c2
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;