From: Ken Hornstein Date: Tue, 24 Oct 2017 18:44:53 +0000 (-0400) Subject: Switch to the use of to_upper() instead of custom code. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/34add94040c09c7481b18045bfb0e3d315e4d5f4?ds=inline Switch to the use of to_upper() instead of custom code. --- diff --git a/sbr/netsec.c b/sbr/netsec.c index eb92dfcd..a0b11d37 100644 --- a/sbr/netsec.c +++ b/sbr/netsec.c @@ -1024,12 +1024,8 @@ netsec_set_sasl_params(netsec_context *nsc, const char *service, */ if (mechanism) { - char *p; nsc->sasl_mech = mh_xstrdup(mechanism); - - for (p = nsc->sasl_mech; *p; p++) - if (isascii((unsigned char) *p)) /* Leave non-ASCII lower alone. */ - *p = toupper((unsigned char) *p); + to_upper(nsc->sasl_mech); } nsc->sasl_proto_cb = callback;