diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-23 19:16:19 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-23 19:16:19 +0000 |
commit | 13e60c55a1a635ceaaf78aa76a4f08c2bcace16f (patch) | |
tree | b50baabf1ab27224dda486ae10b1ffdeedee5149 | |
parent | 9b8b1a68f0b05220582d4a04ae0c454e89058aa4 (diff) |
Avoid trying to compare more than strlen bytes.
-rw-r--r-- | tests/server/sws.c | 2 |
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 */ |