aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-08 17:18:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-08 17:18:21 +0000
commit12e78a082eeb116c528572e6de51b7c4a0eb1bf1 (patch)
treece85acb485a2c0e023df25ea7cd4355ac23854d9
parent9273096a8ab7e31921550b9f7b08eb2b32dcc35e (diff)
Gisle Vanem fixed a single-byte overflow
-rw-r--r--tests/server/getpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/getpart.c b/tests/server/getpart.c
index d05a115a5..6be468db9 100644
--- a/tests/server/getpart.c
+++ b/tests/server/getpart.c
@@ -20,7 +20,7 @@ char *appendstring(char *string, /* original string */
{
int len = strlen(buffer);
- if((len + *stringlen) > *stralloc) {
+ if((len + *stringlen) >= *stralloc) {
char *newptr= realloc(string, *stralloc*2);
if(newptr) {
string = newptr;