Skip to content

Commit

Permalink
pp_sys.c: Use valid_utf8_length()
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jan 12, 2018
1 parent e280fc7 commit d60084c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp_sys.c
Expand Up @@ -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
Expand Down

0 comments on commit d60084c

Please sign in to comment.