X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/26ef00bd3c6c66240a4640aa54db1106d8b901fc..8950ac03f8fd0fb645c7d2374195ea884d091f72:/socket.c?ds=sidebyside diff --git a/socket.c b/socket.c index dd6613ae..7865e31e 100644 --- a/socket.c +++ b/socket.c @@ -32,7 +32,7 @@ static int establish_proxy_connection(int fd, char *host, int port) char buffer[1024]; char *cp; - slprintf(buffer, sizeof(buffer), "CONNECT %s:%d HTTP/1.0\r\n\r\n", host, port); + snprintf(buffer, sizeof(buffer), "CONNECT %s:%d HTTP/1.0\r\n\r\n", host, port); if (write(fd, buffer, strlen(buffer)) != strlen(buffer)) { rprintf(FERROR, "failed to write to proxy: %s\n", strerror(errno));