aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-23 19:16:19 +0000
committerYang Tse <yangsita@gmail.com>2006-10-23 19:16:19 +0000
commit13e60c55a1a635ceaaf78aa76a4f08c2bcace16f (patch)
treeb50baabf1ab27224dda486ae10b1ffdeedee5149 /tests/server
parent9b8b1a68f0b05220582d4a04ae0c454e89058aa4 (diff)
Avoid trying to compare more than strlen bytes.
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index fa0561b43..f9fcd6ca5 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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 */