* upsi. this line copying mustn't be in there.
authorWilfried Göesgens <willi@citadel.org>
Tue, 5 Aug 2008 18:29:52 +0000 (18:29 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 5 Aug 2008 18:29:52 +0000 (18:29 +0000)
webcit/context_loop.c

index d63d829c1f3b9d9976b83dc1d1b0725d25d6f83b..eb73cd44cc5cd307a21257c16f5ba553f77e3fe4 100644 (file)
@@ -378,12 +378,12 @@ void context_loop(int sock)
                strcpy(ptr+1, ptr+8);
        }
 
+       safestrncpy(buf, req->line, sizeof buf);
        /** Begin parsing the request. */
 #ifdef TECH_PREVIEW
        if ((strncmp(req->line+4, "/sslg", 5) != 0) &&
            (strncmp(req->line+4, "/wholist_section", 16) != 0)) {
 #endif
-               safestrncpy(buf, req->line, sizeof buf);
                lprintf(5, "HTTP: %s\n", buf);
 #ifdef TECH_PREVIEW
        }