From a60cc6b4f01a66417ddbd846cb39ea2fe508b453 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 2 Sep 2011 11:28:27 +0000 Subject: [PATCH] Don't use *from++ in tolower as this is implemented as a macro on some platforms. Thanks to Shayne Murray for reporting this issue. --- crypto/asn1/x_name.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index caa4409feb..063bf7c16b 100644 --- a/crypto/asn1/x_name.c +++ b/crypto/asn1/x_name.c @@ -464,7 +464,8 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in) } else { - *to++ = tolower(*from++); + *to++ = tolower(*from); + from++; i++; } } -- GitLab