Permalink
Browse files

mg.c: Use valid_utf8_length()

  • Loading branch information...
khwilliamson committed Dec 7, 2017
1 parent a0492f0 commit cbefef19c86a5d2a5491afc1fb1b02485b14d5b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 mg.c
View
2 mg.c
@@ -737,7 +737,7 @@ Perl_magic_regdatum_get(pTHX_ SV *sv, MAGIC *mg)
const char * const b = RX_SUBBEG(rx);
if (b)
i = RX_SUBCOFFSET(rx) +
utf8_length((U8*)b,
valid_utf8_length((U8*)b,
(U8*)(b-RX_SUBOFFSET(rx)+i));
}

0 comments on commit cbefef1

Please sign in to comment.