diff options
Diffstat (limited to 'FICS/makerank.c')
-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; |