summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBjorn Sandell <biorn@cvs.openbsd.org>2007-01-03 15:15:56 +0000
committerBjorn Sandell <biorn@cvs.openbsd.org>2007-01-03 15:15:56 +0000
commitfd65fdf4971aa64171f167ab15c5120eda936a06 (patch)
tree0cf7a3ba9d5a6d7b06e90c1e8a7f4ae4ded0bf10 /usr.sbin
parent727e7714ca89b16f2ee44a514484de0361dc2038 (diff)
Limit fscanf. From Ulf Harnhammar (metaur at telia dot com)
Diffstat (limited to 'usr.sbin')
-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) {