#ifndef PERL_MICRO
char name[MAXPATHLEN] = { 0 }, *s;
STRLEN pathlen, namelen;
+ const char zero = '\0';
/* Don't use strlen() to avoid running off the end. */
- s = memchr(path, '\0', MAXPATHLEN);
+ s = memchr(path, zero, MAXPATHLEN);
pathlen = s ? s - path : MAXPATHLEN;
#ifdef HAS_REALPATH
/* Is the destination buffer too long?
* Don't use strlen() to avoid running off the end. */
- s = memchr(name, '\0', MAXPATHLEN);
+ s = memchr(name, zero, MAXPATHLEN);
namelen = s ? s - name : MAXPATHLEN;
if (namelen == MAXPATHLEN) {
Perl_warn(aTHX_ "sv_realpath: realpath(\"%s\"): %c= (MAXPATHLEN = %d)",