From 16702423142900702c4d825f9b806f9b19b77356 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 14 May 1998 21:16:52 +0000 Subject: more careful scanf --- usr.sbin/httpd/support/httpd_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/httpd') 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) -- cgit v1.2.3