aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-11-25 21:28:10 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-25 21:28:10 +0100
commitf437ac7aded5e6c30b5543ff0a8531552d16c212 (patch)
tree66402896e09f00d83ae57a6a8573e99d40712724
parentPrepared for v2.2-beta4 for release (diff)
parentFixed an issue causing a build failure with MS Visual Studio 2008. (diff)
downloadopenvpn-f437ac7aded5e6c30b5543ff0a8531552d16c212.tar.xz
Merge branch 'feat_misc' into beta2.2
-rw-r--r--socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socks.c b/socks.c
index 1848f08..8287274 100644
--- a/socks.c
+++ b/socks.c
@@ -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);