From: Joe Orton Date: Fri, 15 Apr 2005 15:20:28 +0000 (+0000) Subject: * support/ab.c (test): Treat POST data as a binary blob not a C X-Git-Tag: 2.1.5~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ffd6acf6a0201ddfbf40d981ec9e94c0f13189d;p=thirdparty%2Fapache%2Fhttpd.git * support/ab.c (test): Treat POST data as a binary blob not a C string. PR: 12981 Submitted by: Matthew H. Gerlach git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161483 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index a6c03de672e..1ac3835510c 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1621,7 +1621,7 @@ static void test(void) return; } strcpy(buff, request); - strcpy(buff + reqlen, postdata); + memcpy(buff + reqlen, postdata, postlen); request = buff; }