From 1bf231bb0ecf5c9f179c32aca4577435d1fe802b Mon Sep 17 00:00:00 2001 From: cecilihf Date: Tue, 3 Jul 2007 09:20:50 +0000 Subject: [PATCH] Use strcmp instead of strncmp git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1624 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishreplay/varnishreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishreplay/varnishreplay.c b/varnish-cache/bin/varnishreplay/varnishreplay.c index 69b015f7..16461d8b 100644 --- a/varnish-cache/bin/varnishreplay/varnishreplay.c +++ b/varnish-cache/bin/varnishreplay/varnishreplay.c @@ -522,7 +522,7 @@ replay_thread(void *arg) * When the request is sent, call the function for receiving * the answer. */ - if (!(strncmp(df_m, "GET", 3) && strncmp(df_m, "HEAD", 4))) { + if (!(strcmp(df_m, "GET") && strcmp(df_m, "HEAD"))) { if (reopen) sock = VSS_connect(addr_info); reopen = 0; -- 2.39.5