From 86f913b00155272b094a1bf9170121b83e55d4d1 Mon Sep 17 00:00:00 2001 From: Codewalker Date: Wed, 24 Dec 2014 11:41:51 -0600 Subject: [PATCH] Fix use of snprintf (which does not exist on all platforms) in auth.c by replacing it with xmpp_snprintf in order to be consistent with the rest of the code. Also fixes compile error on MSVC. --- src/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index d208670..0f269f1 100644 --- a/src/auth.c +++ b/src/auth.c @@ -1196,7 +1196,7 @@ int _handle_component_auth(xmpp_conn_t * const conn) if (digest) { /* convert the digest into string representation */ for (i = 0; i < sizeof(md_value); i++) - snprintf(digest+i*2, 3, "%02x", md_value[i]); + xmpp_snprintf(digest+i*2, 3, "%02x", md_value[i]); digest[2*sizeof(md_value)] = '\0'; xmpp_debug(conn->ctx, "auth", "Digest: %s, len: %d",