]> err.no Git - varnish/commitdiff
Use strcmp instead of strncmp
authorcecilihf <cecilihf@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Jul 2007 09:20:50 +0000 (09:20 +0000)
committercecilihf <cecilihf@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Jul 2007 09:20:50 +0000 (09:20 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1624 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishreplay/varnishreplay.c

index 69b015f7d4634ef752cb2bb378ecfc59ac9ed0f9..16461d8bd87b794a63cf47ffdaa51891ea6871a5 100644 (file)
@@ -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;