(removed a cast from a call to realloc())