From 12e78a082eeb116c528572e6de51b7c4a0eb1bf1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Aug 2003 17:18:21 +0000 Subject: Gisle Vanem fixed a single-byte overflow --- tests/server/getpart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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; -- cgit v1.2.3