From e0cbce6d38488b2c02b86ddd7a0d31b43a465713 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 21 Jun 2004 00:47:18 +0000 Subject: maybe this matters ? git-svn-id: https://svn.musicpd.org/mpd/trunk@1595 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputStream_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inputStream_http.c') 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); -- cgit v1.2.3