aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-21 00:39:08 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-21 00:39:08 +0000
commitfd229dae57f4f131a8f33f603ec2456ba8da3f47 (patch)
treeb3eec634854ca5099332d765de1cae509ab1c59c /src/inputStream_http.c
parentcdb67649a631219ab9dd8ca413f82d0ca89a0919 (diff)
downloadmpd-fd229dae57f4f131a8f33f603ec2456ba8da3f47.tar.gz
mpd-fd229dae57f4f131a8f33f603ec2456ba8da3f47.tar.xz
mpd-fd229dae57f4f131a8f33f603ec2456ba8da3f47.zip
maybe this fixes something ?
git-svn-id: https://svn.musicpd.org/mpd/trunk@1594 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputStream_http.c')
-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',