Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/ibm-public/postfix/dist/src/xsasl Pass strings to %...
details: https://anonhg.NetBSD.org/src/rev/01eb8827c155
branches: trunk
changeset: 959237:01eb8827c155
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Feb 05 21:45:24 2021 +0000
description:
Pass strings to %s arguments, not void *.
diffstat:
external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c | 13 ++++++---
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 31bdbda99b10 -r 01eb8827c155 external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c
--- a/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c Fri Feb 05 21:44:34 2021 +0000
+++ b/external/ibm-public/postfix/dist/src/xsasl/xsasl_saslc_client.c Fri Feb 05 21:45:24 2021 +0000
@@ -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 @@
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 @@
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? */
Home |
Main Index |
Thread Index |
Old Index