projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: remove *_WORD64 macros from libm.h
[musl]
/
src
/
string
/
strlcpy.c
diff --git
a/src/string/strlcpy.c
b/src/string/strlcpy.c
index
6aeb106
..
4d3ff92
100644
(file)
--- a/
src/string/strlcpy.c
+++ b/
src/string/strlcpy.c
@@
-16,7
+16,7
@@
size_t strlcpy(char *d, const char *s, size_t n)
const size_t *ws;
if (!n--) goto finish;
const size_t *ws;
if (!n--) goto finish;
- if (((uintptr_t)s & ALIGN)
!
= ((uintptr_t)d & ALIGN)) {
+ if (((uintptr_t)s & ALIGN)
=
= ((uintptr_t)d & ALIGN)) {
for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++);
if (n && *s) {
wd=(void *)d; ws=(const void *)s;
for (; ((uintptr_t)s & ALIGN) && n && (*d=*s); n--, s++, d++);
if (n && *s) {
wd=(void *)d; ws=(const void *)s;