projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update COPYRIGHT status of TRE regex code
[musl]
/
src
/
string
/
strncat.c
diff --git
a/src/string/strncat.c
b/src/string/strncat.c
index
255b7a7
..
08685ad
100644
(file)
--- a/
src/string/strncat.c
+++ b/
src/string/strncat.c
@@
-4,7
+4,7
@@
char *strncat(char *d, const char *s, size_t n)
{
char *a = d;
d += strlen(d);
- while (n &&
(*d++ = *s++)) n--
;
+ while (n &&
*s) n--, *d++ = *s++
;
*d++ = 0;
return a;
}