From fdab639b86dae514828a90a0bcf5ceefe8bbf936 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 28 Nov 2024 07:21:39 +0100 Subject: Added width spec --- FICS/makerank.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3