Correct arguments to realloc