From 13e60c55a1a635ceaaf78aa76a4f08c2bcace16f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 23 Oct 2006 19:16:19 +0000 Subject: Avoid trying to compare more than strlen bytes. --- tests/server/sws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 */ -- cgit v1.2.3