aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-01-20 04:56:20 +0000
committerWayne Davison <wayned@samba.org>2004-01-20 04:56:20 +0000
commit893c4cc0564c00dd541f9ee612be5896a7894679 (patch)
tree81ba5bb08509d398553a80dac97c1e9a3ed8889e /socket.c
parenta7725e6df9d1ddd69fd4de82d5d703fa073424fa (diff)
downloadandroid_external_rsync-893c4cc0564c00dd541f9ee612be5896a7894679.tar.gz
android_external_rsync-893c4cc0564c00dd541f9ee612be5896a7894679.tar.bz2
android_external_rsync-893c4cc0564c00dd541f9ee612be5896a7894679.zip
Use new stringjoin() function.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
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) {