diff --git a/tests/unit/unit2604.c b/tests/unit/unit2604.c index 3002d84ec0..baa8ecb445 100644 --- a/tests/unit/unit2604.c +++ b/tests/unit/unit2604.c @@ -81,7 +81,7 @@ static CURLcode test_unit2604(const char *arg) const char *cp; CURLcode result; if(i == 0) { - cp0 = calloc(1, too_long + 1); + cp0 = malloc(too_long + 1); fail_unless(cp0, "could not alloc too long value"); memset(cp0, 'a', too_long); cp = cp0;