aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-21 00:47:18 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-21 00:47:18 +0000
commite0cbce6d38488b2c02b86ddd7a0d31b43a465713 (patch)
treee14c5a5dea585a702a1b6d063ea50cf3ca687568 /src/inputStream_http.c
parentfd229dae57f4f131a8f33f603ec2456ba8da3f47 (diff)
downloadmpd-e0cbce6d38488b2c02b86ddd7a0d31b43a465713.tar.gz
mpd-e0cbce6d38488b2c02b86ddd7a0d31b43a465713.tar.xz
mpd-e0cbce6d38488b2c02b86ddd7a0d31b43a465713.zip
maybe this matters ?
git-svn-id: https://svn.musicpd.org/mpd/trunk@1595 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputStream_http.c')
-rw-r--r--src/inputStream_http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 3d8e9945c..4374d654d 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -166,7 +166,8 @@ static char * proxyAuthString(char * user, char * password) {
templen = strlen(user) + strlen(password) + 2;
temp = calloc(templen, 1);
- snprintf(temp, templen-1, "%s:%s", user, password);
+ snprintf(temp, templen, "%s:%s", user, password);
+ temp[templen-1] = '\0';
temp64 = base64Dup(temp);
free(temp);