mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
This commit is contained in:
@@ -269,7 +269,7 @@ static zend_always_inline size_t zend_strnlen(const char* s, size_t maxlen)
|
||||
#if defined(HAVE_STRNLEN)
|
||||
return strnlen(s, maxlen);
|
||||
#else
|
||||
const char *p = memchr(s, '\0', maxlen);
|
||||
const char *p = (const char *)memchr(s, '\0', maxlen);
|
||||
return p ? p-s : maxlen;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user