From 5ffd6acf6a0201ddfbf40d981ec9e94c0f13189d Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 15 Apr 2005 15:20:28 +0000 Subject: [PATCH] * 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 --- support/ab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/ab.c b/support/ab.c index a6c03de672..1ac3835510 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; } -- 2.50.1