about summary refs log tree commit diff
path: root/sysdeps/alpha/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/memchr.c')
-rw-r--r--sysdeps/alpha/memchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/alpha/memchr.c b/sysdeps/alpha/memchr.c
index 11ff542f25..a911302ea6 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];