summaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-14 21:16:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-14 21:16:52 +0000
commit16702423142900702c4d825f9b806f9b19b77356 (patch)
tree7a91923989538dfd755191d8f6a88a4797530230 /usr.sbin/config
parentdc315e71ee8035dff83bf123daa23e0faf00f467 (diff)
more careful scanf
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkheaders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c
index 92870708cde..dc4ed3f9f38 100644
--- a/usr.sbin/config/mkheaders.c
+++ b/usr.sbin/config/mkheaders.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkheaders.c,v 1.9 1998/05/11 01:19:17 deraadt Exp $ */
+/* $OpenBSD: mkheaders.c,v 1.10 1998/05/14 21:16:44 deraadt Exp $ */
/* $NetBSD: mkheaders.c,v 1.12 1997/02/02 21:12:34 thorpej Exp $ */
/*
@@ -100,7 +100,7 @@ emitcnt(head)
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (nv == NULL)
goto writeit;
- if (sscanf(buf, "#define %100s %d", nam, &cnt) != 2 ||
+ if (sscanf(buf, "#define %99s %d", nam, &cnt) != 2 ||
strcmp(nam, cntname(nv->nv_name)) != 0 ||
cnt != nv->nv_int)
goto writeit;