Don't use *from++ in tolower as this is implemented as a macro on some
[openssl.git] / crypto / asn1 / x_name.c
index caa4409feb2743e163ae5b981fcef0710683c6da..063bf7c16bfbe0490aa6c9d6aaf7a180be6b8173 100644 (file)
@@ -464,7 +464,8 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
                        }
                else
                        {
-                       *to++ = tolower(*from++);
+                       *to++ = tolower(*from);
+                       from++;
                        i++;
                        }
                }