diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 05:09:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 05:09:12 +0000 |
commit | cb4f89c64d6b930d3f8f91caefc799d2d510d0b5 (patch) | |
tree | d8da3f61726d1d5d4b28b75533b4d57da42d1907 | |
parent | 3c841dd2d310bebf676429fdecfc6220dda4bc48 (diff) |
set max field width of %s correctly
-rw-r--r-- | usr.sbin/httpd/support/httpd_monitor.c | 2 |
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) |