From: cecilihf Date: Tue, 3 Jul 2007 09:20:50 +0000 (+0000) Subject: Use strcmp instead of strncmp X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bf231bb0ecf5c9f179c32aca4577435d1fe802b;p=varnish Use strcmp instead of strncmp git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1624 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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;