Avoid trying to compare more than strlen bytes.

This commit is contained in:
Yang Tse 2006-10-23 19:16:19 +00:00
parent 9b8b1a68f0
commit 13e60c55a1
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ int ProcessRequest(struct httprequest *req)
return 1; /* done */
}
if(!strncmp("/quit", ptr, 15)) {
if(!strncmp("/quit", ptr, 5)) {
logmsg("Request-to-quit received");
req->testno = DOCNUMBER_QUIT;
return 1; /* done */