summaryrefslogtreecommitdiff
path: root/src/string/memccpy.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-07 16:19:30 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-07 16:19:30 -0400
commitcb8dff2149c393c94c2abbef186c564829b97e93 (patch)
tree9f02299bde067f1a5531928fad6e50d296d09ae9 /src/string/memccpy.c
parent4095f8338d77cad73a8afbf2d4a0d7987e472bab (diff)
downloadmusl-cb8dff2149c393c94c2abbef186c564829b97e93.tar.gz
fix misplaced *'s in string functions (harmless)
Diffstat (limited to 'src/string/memccpy.c')
-rw-r--r--src/string/memccpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/memccpy.c b/src/string/memccpy.c
index 4a875cf5..2ccb31bb 100644
--- a/src/string/memccpy.c
+++ b/src/string/memccpy.c
@@ -22,7 +22,7 @@ void *memccpy(void *dest, const void *src, int c, size_t n)
k = ONES * c;
wd=(void *)d; ws=(const void *)s;
for (; n>=sizeof(size_t) && !HASZERO(*ws^k);
- n-=sizeof(size_t), ws++, *wd++) *wd = *ws;
+ n-=sizeof(size_t), ws++, wd++) *wd = *ws;
d=(void *)wd; s=(const void *)ws;
}
for (; n && (*d=*s)!=c; n--, s++, d++);