imported new snprintf.c from samba, got rid of slprintf
[rsync/rsync.git] / socket.c
index dd6613a..7865e31 100644 (file)
--- 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));