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>
| ... | ... |
@@ -121,7 +121,7 @@ socks_username_password_auth (struct socks_proxy_info *p, |
| 121 | 121 |
"Authentication not possible."); |
| 122 | 122 |
return false; |
| 123 | 123 |
} |
| 124 |
- snprintf (to_send, sizeof (to_send), "\x01%c%s%c%s", (int) strlen(creds.username), |
|
| 124 |
+ openvpn_snprintf (to_send, sizeof (to_send), "\x01%c%s%c%s", (int) strlen(creds.username), |
|
| 125 | 125 |
creds.username, (int) strlen(creds.password), creds.password); |
| 126 | 126 |
size = send (sd, to_send, strlen(to_send), MSG_NOSIGNAL); |
| 127 | 127 |
|