whitespace alterations
FossilOrigin-Name: a8b81837d53dab5e625418146a37ab511b11442a267d3c4893dbf6847ccfbd5e
This commit is contained in:
parent
067bae0ea4
commit
df072eb58f
1 changed files with 3 additions and 3 deletions
|
@ -1699,7 +1699,7 @@ size_t strlcat(char *dst, const char *src, size_t dsize) {
|
||||||
src++;
|
src++;
|
||||||
}
|
}
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
return(dlen + (src - osrc)); /* count does not include NUL */
|
return(dlen + (src - osrc)); /* count does not include NUL */
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t strlcpy(char *dst, const char *src, size_t dsize) {
|
size_t strlcpy(char *dst, const char *src, size_t dsize) {
|
||||||
|
@ -1717,10 +1717,10 @@ size_t strlcpy(char *dst, const char *src, size_t dsize) {
|
||||||
/* Not enough room in dst, add NUL and traverse rest of src. */
|
/* Not enough room in dst, add NUL and traverse rest of src. */
|
||||||
if (nleft == 0) {
|
if (nleft == 0) {
|
||||||
if (dsize != 0)
|
if (dsize != 0)
|
||||||
*dst = '\0'; /* NUL-terminate dst */
|
*dst = '\0'; /* NUL-terminate dst */
|
||||||
while (*src++)
|
while (*src++)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
return(src - osrc - 1); /* count does not include NUL */
|
return(src - osrc - 1); /* count does not include NUL */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue