X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/173f5bf8cfa28bbefe718a02839d8ff58f98ac47..22d49dc429f18b5cccf0f237dfd95cceb0b48367:/socket.c diff --git a/socket.c b/socket.c index 5843325a..4ca87037 100644 --- a/socket.c +++ b/socket.c @@ -48,8 +48,8 @@ static int establish_proxy_connection(int fd, char *host, int port, int len; if (proxy_user && proxy_pass) { - snprintf(buffer, sizeof buffer, "%s:%s", - proxy_user, proxy_pass); + stringjoin(buffer, sizeof buffer, + proxy_user, ":", proxy_pass, NULL); len = strlen(buffer); if ((len*8 + 5) / 6 >= (int)sizeof authbuf) {