summaryrefslogtreecommitdiff
path: root/lib/base64.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 04:28:43 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 04:28:43 +0000
commit861b647e7b1da564b831a5b07312a30feb7b6c58 (patch)
tree0bf8f137e7db222deefccc94fe3a22eecadba7d8 /lib/base64.c
parent70e57dad8856c2b99d947344661ae260c6fff594 (diff)
downloadcurl-861b647e7b1da564b831a5b07312a30feb7b6c58.tar.gz
remove unnecessary typecasting of realloc()
Diffstat (limited to 'lib/base64.c')
-rw-r--r--lib/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 9dbf9f4ea..0453624fb 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -356,7 +356,7 @@ void *suck(int *lenptr)
do {
cursize *= 2;
- buf = (unsigned char *)realloc(buf, cursize);
+ buf = realloc(buf, cursize);
memset(buf + len, 0, cursize - len);
lastread = fread(buf + len, 1, cursize - len, stdin);
len += lastread;