Permalink
Browse files

pp_sys.c: Use valid_utf8_length()

  • Loading branch information...
khwilliamson committed Dec 7, 2017
1 parent e280fc7 commit d60084cf424519eb0e9f7562144ccfd18a746872
Showing with 1 addition and 1 deletion.
  1. +1 −1 pp_sys.c
View
@@ -2121,7 +2121,7 @@ PP(pp_syswrite)
goto say_undef;
SP = ORIGMARK;
if (doing_utf8)
retval = utf8_length((U8*)buffer, (U8*)buffer + retval);
retval = valid_utf8_length((U8*)buffer, (U8*)buffer + retval);
Safefree(tmpbuf);
#if Size_t_size > IVSIZE

0 comments on commit d60084c

Please sign in to comment.