aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 3e3e4e224..3d8e9945c 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -121,8 +121,8 @@ void inputStream_initHttp() {
static char * base64Dup(char * s) {
int i;
int len = strlen(s);
- char * ret = malloc(BASE64_LENGTH(len)+1);
- char * p = ret;
+ char * ret = calloc(BASE64_LENGTH(len)+1, 1);
+ unsigned char * p = (unsigned char *)ret;
char tbl[64] = {
'A','B','C','D','E','F','G','H',