From 4f7d5d1727ce040bc0c4eaace124e53655db413e Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 5 Feb 2021 21:45:24 +0000 Subject: [PATCH] Pass strings to %s arguments, not void *. --- .../postfix/dist/src/xsasl/xsasl_saslc_client.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c b/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c index 4f6947301226..1c940048856b 100644 --- a/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c +++ b/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c @@ -1,4 +1,4 @@ -/* $NetBSD: xsasl_saslc_client.c,v 1.1 2011/02/12 19:07:09 christos Exp $ */ +/* $NetBSD: xsasl_saslc_client.c,v 1.2 2021/02/05 21:45:24 joerg Exp $ */ /*++ /* NAME @@ -167,8 +167,10 @@ xsasl_saslc_client_first( return XSASL_AUTH_FAIL; } vstring_strcpy(init_resp, outlen ? out : ""); - if (msg_verbose) - msg_info("%s: client_reply='%s'", __func__, outlen ? out : ""); + if (msg_verbose) { + msg_info("%s: client_reply='%s'", __func__, + outlen ? (const char *)out : ""); + } if (outlen > 0) memset(out, 0, outlen); /* XXX: silly? */ @@ -201,9 +203,10 @@ xsasl_saslc_client_next(XSASL_CLIENT *xp, const char *server_reply, return XSASL_AUTH_FAIL; } vstring_strcpy(client_reply, outlen ? out : ""); - if (msg_verbose) + if (msg_verbose) { msg_info("%s: client_reply='%s'", __func__, - outlen ? out : ""); + outlen ? (const char *) out : ""); + } if (outlen > 0) memset(out, 0, outlen); /* XXX: silly? */