summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-09-26 11:20:22 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-09-26 11:20:22 +0000
commit7ace05025d92c41ebd5de77d6008a24da33a8ba1 (patch)
tree7a5e70857e946c7383865894cba650bc134d1b40
parent1714c3f5835e598ffb33d3a26c9b59e31e6c0c92 (diff)
off by one in fscanf; from aaron@
-rw-r--r--games/atc/log.c6
1 files changed, 3 insertions, 3 deletions
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,