summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-10-13 00:35:43 -0700
committerKarl Williamson <khw@cpan.org>2019-10-13 12:05:52 -0700
commitf87d8789b924d2fac04671d98d5db10eee8da45e (patch)
treee8c46b929445e73852644bf7ae514cd212194370 /utf8.h
parenteeef80ee5baf3bfa9bcd89b3a8d2f536461f8bc2 (diff)
downloadperl-f87d8789b924d2fac04671d98d5db10eee8da45e.tar.gz
Fix UTF8_CHK_SKIP()
I forgot an arg in a macro it calls.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 83cccf16c3..8868efb5d0 100644
--- a/utf8.h
+++ b/utf8.h
@@ -583,7 +583,8 @@ L</C<UTF8_SAFE_SKIP>>, for example when interfacing with a C library.
*/
#define UTF8_CHK_SKIP(s) \
- (s[0] == '\0' ? 1 : MIN(my_strnlen((char *) (s), UTF8SKIP(s))))
+ (s[0] == '\0' ? 1 : MIN(UTF8SKIP(s), \
+ my_strnlen((char *) (s), UTF8SKIP(s))))
/*
=for apidoc Am|STRLEN|UTF8_SAFE_SKIP|char* s|char* e