From 7ace05025d92c41ebd5de77d6008a24da33a8ba1 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Fri, 26 Sep 2003 11:20:22 +0000 Subject: off by one in fscanf; from aaron@ --- games/atc/log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/atc') diff --git a/games/atc/log.c b/games/atc/log.c index 37e18e684ca..d4ecb0779a8 100644 --- a/games/atc/log.c +++ b/games/atc/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.12 2003/06/03 03:01:38 millert Exp $ */ +/* $OpenBSD: log.c,v 1.13 2003/09/26 11:20:21 avsm Exp $ */ /* $NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $ */ /*- @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: log.c,v 1.12 2003/06/03 03:01:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: log.c,v 1.13 2003/09/26 11:20:21 avsm Exp $"; #endif #endif /* not lint */ @@ -147,7 +147,7 @@ log_score(list_em) perror("flock"); return (-1); } - snprintf(scanstr, 50, "%%%ds %%256s %%d %%d %%d", MAXLOGNAME); + snprintf(scanstr, 50, "%%%ds %%255s %%d %%d %%d", MAXLOGNAME); for (;;) { good = fscanf(score_fp, scanstr, score[num_scores].name, -- cgit v1.2.3