changing a little bug in define realloc()

define realloc(ptr, size) instead of nmemb, size. Will crash otherwise