Skip to content

Commit ec8cec6

Browse files
committed
collxfrm: Add missing length set
We were creating a string but failed to set its length; hence the one from the old string was used.
1 parent e5ad266 commit ec8cec6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

locale.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9961,6 +9961,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
99619961
s+= UTF8SKIP(s);
99629962
}
99639963

9964+
len = d - sans_highs;
99649965
*d++ = '\0';
99659966

99669967
s = sans_highs;

0 commit comments

Comments
 (0)