diff --git a/utf8.h b/utf8.h index e9a7907ef3a9..0aa0fd5349e7 100644 --- a/utf8.h +++ b/utf8.h @@ -801,7 +801,7 @@ C>, for example when interfacing with a C library. */ #define UTF8_CHK_SKIP(s) \ - (UNLIKELY(s[0] == '\0') ? 1 : my_strnlen((char *) (s), UTF8SKIP(s))) + (UNLIKELY(s[0] == '\0') ? 1 : my_strnlen((const char *) (s), UTF8SKIP(s))) /* =for apidoc Am|STRLEN|UTF8_SAFE_SKIP|char* s|char* e