Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
authorRoland McGrath <roland@gnu.org>
Thu, 15 Feb 1996 16:47:45 +0000 (16:47 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 15 Feb 1996 16:47:45 +0000 (16:47 +0000)
        * sysdeps/alpha/memchr.c (memchr): loop searching for matching
        character bailed out one too early; changed constant 6 to
        7 to fix this.

sysdeps/alpha/memchr.c

index 11ff542..a911302 100644 (file)
@@ -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];