diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-08-03 22:18:34 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-08-03 22:18:34 +0200 |
commit | b8d54663404e81c4d6d9960cba01885c5aee68fd (patch) | |
tree | 12f6f246c78760ef54e87bc86ef7d7c707a4ef78 /FICS/gamedb.c | |
parent | f34a709d6be34399080768a95b361a7fb110d7ab (diff) |
Scan no more than 17 chars
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r-- | FICS/gamedb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 5becbd4..99600f8 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -1239,7 +1239,7 @@ ReadV1GameFmt(game *g, FILE *fp, const char *file, int version) _Static_assert(17 < ARRAY_SIZE(g->white_name), "Unexpected array size"); _Static_assert(17 < ARRAY_SIZE(g->black_name), "Unexpected array size"); - ret[0] = fscanf(fp, "%s %s", g->white_name, g->black_name); + ret[0] = fscanf(fp, "%17s %17s", g->white_name, g->black_name); ret[1] = fscanf(fp, "%d %d", &g->white_rating, &g->black_rating); ret[2] = fscanf(fp, "%d %d %d %d", &g->wInitTime, |