diff options
author | 2007-01-03 15:15:55 +0000 | |
---|---|---|
committer | 2007-01-03 15:15:55 +0000 | |
commit | bc38e38f1b2fc01c467317c5e880b26f32d4feae (patch) | |
tree | cba18c5fef71c59e53f3f0b2f5525bd372190e02 | |
parent | Rename bcw_shm_write_4() to bcw_shm_ctl_word(). We need the original (diff) | |
download | wireguard-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.c | 2 |
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) { |