summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbiorn <biorn@openbsd.org>2007-01-03 15:15:55 +0000
committerbiorn <biorn@openbsd.org>2007-01-03 15:15:55 +0000
commitbc38e38f1b2fc01c467317c5e880b26f32d4feae (patch)
treecba18c5fef71c59e53f3f0b2f5525bd372190e02
parentRename bcw_shm_write_4() to bcw_shm_ctl_word(). We need the original (diff)
downloadwireguard-openbsd-bc38e38f1b2fc01c467317c5e880b26f32d4feae.tar.xz
wireguard-openbsd-bc38e38f1b2fc01c467317c5e880b26f32d4feae.zip
Limit fscanf. From Ulf Harnhammar (metaur at telia dot com)
-rw-r--r--usr.sbin/afs/src/milko/bos/bosserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/milko/bos/bosserver.c b/usr.sbin/afs/src/milko/bos/bosserver.c
index a124be4faa6..b1343274782 100644
--- a/usr.sbin/afs/src/milko/bos/bosserver.c
+++ b/usr.sbin/afs/src/milko/bos/bosserver.c
@@ -362,7 +362,7 @@ read_config_file (char *filename)
char name[100];
int enablep;
lineno ++;
- ret = fscanf (f, "%s %d", name, &enablep);
+ ret = fscanf (f, "%99s %d", name, &enablep);
if (ret == EOF)
break;
if (ret != 2) {