projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reduce some ridiculously large spin counts
[oweals/musl.git]
/
src
/
string
/
strlcpy.c
diff --git
a/src/string/strlcpy.c
b/src/string/strlcpy.c
index bbebf1db5ec6d27ea092af4be4bfedb933275641..6aeb106aa2e032c4d392631bb8fa9dd8a9f2e8bb 100644
(file)
--- a/
src/string/strlcpy.c
+++ b/
src/string/strlcpy.c
@@
-21,7
+21,7
@@
size_t strlcpy(char *d, const char *s, size_t n)
if (n && *s) {
wd=(void *)d; ws=(const void *)s;
for (; n>=sizeof(size_t) && !HASZERO(*ws);
- n-=sizeof(size_t), ws++,
*
wd++) *wd = *ws;
+ n-=sizeof(size_t), ws++, wd++) *wd = *ws;
d=(void *)wd; s=(const void *)ws;
}
}