aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);