mirror of
https://github.com/strophe/libstrophe.git
synced 2026-08-05 03:16:21 +00:00
properly rename internal [v]snprintf() functions
Otherwise it clashes when we want to re-introduce the `xmpp_` prefix'ed versions. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -283,7 +283,7 @@ static void _strophe_log(const xmpp_ctx_t *ctx,
|
||||
return;
|
||||
|
||||
va_copy(copy, ap);
|
||||
ret = xmpp_vsnprintf(smbuf, sizeof(smbuf), fmt, ap);
|
||||
ret = strophe_vsnprintf(smbuf, sizeof(smbuf), fmt, ap);
|
||||
if (ret >= (int)sizeof(smbuf)) {
|
||||
buf = (char *)strophe_alloc(ctx, ret + 1);
|
||||
if (!buf) {
|
||||
@@ -294,7 +294,7 @@ static void _strophe_log(const xmpp_ctx_t *ctx,
|
||||
return;
|
||||
}
|
||||
oldret = ret;
|
||||
ret = xmpp_vsnprintf(buf, ret + 1, fmt, copy);
|
||||
ret = strophe_vsnprintf(buf, ret + 1, fmt, copy);
|
||||
if (ret > oldret) {
|
||||
strophe_error(ctx, "log", "Unexpected error");
|
||||
strophe_free(ctx, buf);
|
||||
|
||||
Reference in New Issue
Block a user