aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;