projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da184b1
)
Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
author
Roland McGrath
<roland@gnu.org>
Thu, 15 Feb 1996 16:47:45 +0000
(16:47 +0000)
committer
Roland 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
patch
|
blob
|
history
diff --git
a/sysdeps/alpha/memchr.c
b/sysdeps/alpha/memchr.c
index
11ff542
..
a911302
100644
(file)
--- 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];