summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2003-09-26 11:20:21 +0000
committeravsm <avsm@openbsd.org>2003-09-26 11:20:21 +0000
commitdc5637127c872a6e9b74cd6b8230f2675adb2559 (patch)
treebeefa8c483457f514dfbc2374e999f8acdbf7f0c
parent.Xr mount_ntfs; (diff)
downloadwireguard-openbsd-dc5637127c872a6e9b74cd6b8230f2675adb2559.tar.xz
wireguard-openbsd-dc5637127c872a6e9b74cd6b8230f2675adb2559.zip
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,