$ WS "int main()"
$ WS "{"
$ WS "char * place;"
-$ WS "place = memchr(""foo"", 47, 3)"
+$ WS "place = memchr(""foo"", 47, 3);"
$ WS "exit(0);"
$ WS "}"
$ CS
#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, zero, MAXPATHLEN);
+ s = memchr(path, '\0', 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, zero, MAXPATHLEN);
+ s = memchr(name, '\0', MAXPATHLEN);
namelen = s ? s - name : MAXPATHLEN;
if (namelen == MAXPATHLEN) {
Perl_warn(aTHX_ "sv_realpath: realpath(\"%s\"): %c= (MAXPATHLEN = %d)",