Permalink
Browse files

pp_split() Use valid_utf8_length()

  • Loading branch information...
khwilliamson committed Dec 7, 2017
1 parent 5511d54 commit b053add09b2c355c395dedce36802b64bc5736e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 pp.c
View
2 pp.c
@@ -5683,7 +5683,7 @@ PP(pp_split)
const char *m;
SSize_t iters = 0;
const STRLEN slen = do_utf8
? utf8_length((U8*)s, (U8*)strend)
? valid_utf8_length((U8*)s, (U8*)strend)
: (STRLEN)(strend - s);
SSize_t maxiters = slen + 10;
I32 trailing_empty = 0;

0 comments on commit b053add

Please sign in to comment.