1
0
mirror of https://github.com/moparisthebest/curl synced 2024-10-31 15:45:12 -04:00
This commit is contained in:
Daniel Stenberg 2005-02-04 23:53:12 +00:00
parent 29350b363b
commit 2248599ae1

View File

@ -37,7 +37,7 @@ void *myrealloc(void *ptr, size_t size)
size_t size_t
WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
{ {
register int realsize = size * nmemb; size_t realsize = size * nmemb;
struct MemoryStruct *mem = (struct MemoryStruct *)data; struct MemoryStruct *mem = (struct MemoryStruct *)data;
mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1); mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);