diff options
author | Samuli Seppänen <samuli@openvpn.net> | 2010-11-25 21:48:34 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-25 21:27:13 +0100 |
commit | 86f6b9d3bdd94d1e564ae14bb16b04554f6ab27b (patch) | |
tree | 2a40f2c93ed520e62661342b7e056b97d33d6c23 /socks.c | |
parent | Merged add_bypass_address() and add_host_route_if_nonlocal() (diff) | |
download | openvpn-86f6b9d3bdd94d1e564ae14bb16b04554f6ab27b.tar.xz |
Fixed an issue causing a build failure with MS Visual Studio 2008.
The new SOCKS auth code in socks.c contained a call to sprintf instead of
openvpn_sprintf. This caused build to fail if MS Visual Studio 2008 C compiler
was used. This change fixes that issue.
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'socks.c')
-rw-r--r-- | socks.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ socks_username_password_auth (struct socks_proxy_info *p, "Authentication not possible."); return false; } - snprintf (to_send, sizeof (to_send), "\x01%c%s%c%s", (int) strlen(creds.username), + openvpn_snprintf (to_send, sizeof (to_send), "\x01%c%s%c%s", (int) strlen(creds.username), creds.username, (int) strlen(creds.password), creds.password); size = send (sd, to_send, strlen(to_send), MSG_NOSIGNAL); |