From 629270596842692169b03711d417f484a766b1af Mon Sep 17 00:00:00 2001 From: elasota Date: Mon, 8 Mar 2021 19:07:31 -0500 Subject: [PATCH] Fix insensitive compare not working properly with strings of different length --- PortabilityLayer/PLStringCompare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PortabilityLayer/PLStringCompare.cpp b/PortabilityLayer/PLStringCompare.cpp index bf6dd7f..4e453c1 100644 --- a/PortabilityLayer/PLStringCompare.cpp +++ b/PortabilityLayer/PLStringCompare.cpp @@ -47,7 +47,7 @@ namespace StrCmp const uint8_t *chars2 = string2.UChars(); const size_t len1 = string1.Length(); - const size_t len2 = string1.Length(); + const size_t len2 = string2.Length(); const size_t shorterLen = std::min(len1, len2);