summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-11 05:09:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-11 05:09:12 +0000
commitcb4f89c64d6b930d3f8f91caefc799d2d510d0b5 (patch)
treed8da3f61726d1d5d4b28b75533b4d57da42d1907
parent3c841dd2d310bebf676429fdecfc6220dda4bc48 (diff)
set max field width of %s correctly
-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 847a03a77cb..b50be4aad03 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, "%s %s", param, value);
+ sscanf(line, "%1024s %1024s", param, value);
if (strcmp(param, "PidFile")==0 && *value)
strcpy(pidfile, value);
if (strcmp(param, "ScoreBoardFile")==0 && *value)