summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-08-04 08:28:51 -0600
committerKarl Williamson <khw@cpan.org>2018-08-04 09:48:23 -0600
commite94c3f6a8d515b39961010524037ca044f029524 (patch)
treeeb6be597ef09ef31fc7fbe8bbd0b5a2e6e055b95 /mathoms.c
parent2951abb4de83bfd534d332144e6a0bb3e2aaecdc (diff)
downloadperl-e94c3f6a8d515b39961010524037ca044f029524.tar.gz
mathoms.c: Use my_strnlen, not strnlen
Spotted by H. Merijn Brand.
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mathoms.c b/mathoms.c
index 59d8aeacf7..375e3e330f 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -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)));
}
/*