summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
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/httpd
parentdc315e71ee8035dff83bf123daa23e0faf00f467 (diff)
more careful scanf
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r--usr.sbin/httpd/support/httpd_monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/httpd/support/httpd_monitor.c b/usr.sbin/httpd/support/httpd_monitor.c
index b50be4aad03..f580a464824 100644
--- a/usr.sbin/httpd/support/httpd_monitor.c
+++ b/usr.sbin/httpd/support/httpd_monitor.c
@@ -259,7 +259,7 @@ FILE *thefile;
while (!(feof(thefile))) {
fgets(line, ASIZE-1, thefile);
*value = '\0'; /* protect braindead sscanf() */
- sscanf(line, "%1024s %1024s", param, value);
+ sscanf(line, "%1023s %1023s", param, value);
if (strcmp(param, "PidFile")==0 && *value)
strcpy(pidfile, value);
if (strcmp(param, "ScoreBoardFile")==0 && *value)