Permalink
Browse files

ext/B: Use valid_utf8_length()

  • Loading branch information...
khwilliamson committed Dec 7, 2017
1 parent cbefef1 commit 48ca7edfd359752ed77fef0ad034638c1782d5b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/B/B.xs
View
@@ -1267,7 +1267,7 @@ aux_list(o, cv)
chars = bytes;
else {
/* return char lengths rather than byte lengths */
chars = utf8_length(p, p + bytes);
chars = valid_utf8_length(p, p + bytes);
p += bytes;
}
lens++;

0 comments on commit 48ca7ed

Please sign in to comment.