diff options
author | Karl Williamson <khw@cpan.org> | 2018-08-04 08:28:51 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-08-04 09:48:23 -0600 |
commit | e94c3f6a8d515b39961010524037ca044f029524 (patch) | |
tree | eb6be597ef09ef31fc7fbe8bbd0b5a2e6e055b95 | |
parent | 2951abb4de83bfd534d332144e6a0bb3e2aaecdc (diff) | |
download | perl-e94c3f6a8d515b39961010524037ca044f029524.tar.gz |
mathoms.c: Use my_strnlen, not strnlen
Spotted by H. Merijn Brand.
-rw-r--r-- | mathoms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1662,7 +1662,7 @@ Perl_is_utf8_char(const U8 *s) /* Assumes we have enough space, which is why this is deprecated. But the * strnlen() makes it safe for the common case of NUL-terminated strings */ - return isUTF8_CHAR(s, s + strnlen((char *) s, UTF8SKIP(s))); + return isUTF8_CHAR(s, s + my_strnlen((char *) s, UTF8SKIP(s))); } /* |