]> granicus.if.org Git - apache/commitdiff
* support/ab.c (test): Treat POST data as a binary blob not a C
authorJoe Orton <jorton@apache.org>
Fri, 15 Apr 2005 15:20:28 +0000 (15:20 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 15 Apr 2005 15:20:28 +0000 (15:20 +0000)
string.

PR: 12981
Submitted by: Matthew H. Gerlach <mgerlach@lightsurf.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161483 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index a6c03de672eae3a1618205520578d75967fa40ae..1ac3835510c06ca978aadab5a9dfd4b887e6fe60 100644 (file)
@@ -1621,7 +1621,7 @@ static void test(void)
             return;
         }
         strcpy(buff, request);
-        strcpy(buff + reqlen, postdata);
+        memcpy(buff + reqlen, postdata, postlen);
         request = buff;
     }