projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29350b3
)
fix type
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 4 Feb 2005 23:53:12 +0000
(23:53 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 4 Feb 2005 23:53:12 +0000
(23:53 +0000)
docs/examples/getinmemory.c
patch
|
blob
|
history
diff --git
a/docs/examples/getinmemory.c
b/docs/examples/getinmemory.c
index 5a77e9c7e85771c287586f0a9876715617e45eca..3ca3aedd21118d4bafafc03168ecdbee07f02161 100644
(file)
--- a/
docs/examples/getinmemory.c
+++ b/
docs/examples/getinmemory.c
@@
-37,7
+37,7
@@
void *myrealloc(void *ptr, size_t size)
size_t
WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
{
-
register in
t realsize = size * nmemb;
+
size_
t realsize = size * nmemb;
struct MemoryStruct *mem = (struct MemoryStruct *)data;
mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);