From: Roland McGrath Date: Thu, 15 Feb 1996 16:47:45 +0000 (+0000) Subject: Wed Feb 14 00:21:17 1996 David Mosberger-Tang X-Git-Tag: glibc-2.16-ports-before-merge~3888 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3964340a690d43564e6a9ac451b67a37ffa710c7;p=thirdparty%2Fglibc.git Wed Feb 14 00:21:17 1996 David Mosberger-Tang * sysdeps/alpha/memchr.c (memchr): loop searching for matching character bailed out one too early; changed constant 6 to 7 to fix this. --- diff --git a/sysdeps/alpha/memchr.c b/sysdeps/alpha/memchr.c index 11ff542f257..a911302ea6a 100644 --- a/sysdeps/alpha/memchr.c +++ b/sysdeps/alpha/memchr.c @@ -72,7 +72,7 @@ memchr (const void *s, int c, size_t n) unsigned char *cp = (unsigned char *) (longword_ptr - 1); int i; - for (i = 0; i < 6; i++) + for (i = 0; i < 7; i++) if (cp[i] == c) return &cp[i]; return &cp[7];