summaryrefslogtreecommitdiffstats
path: root/support/ab.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-04-15 17:20:28 +0200
committerJoe Orton <jorton@apache.org>2005-04-15 17:20:28 +0200
commit5ffd6acf6a0201ddfbf40d981ec9e94c0f13189d (patch)
tree0d3fa6c2f6391d77fa43485da6fbc4fd691c1143 /support/ab.c
parentAdd redirect-carefully BrowserMatch for FrontPage. (diff)
downloadapache2-5ffd6acf6a0201ddfbf40d981ec9e94c0f13189d.tar.xz
apache2-5ffd6acf6a0201ddfbf40d981ec9e94c0f13189d.zip
* support/ab.c (test): Treat POST data as a binary blob not a C
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
Diffstat (limited to 'support/ab.c')
-rw-r--r--support/ab.c2
1 files changed, 1 insertions, 1 deletions
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;
}