merge r2920, r2934, r3116, r3119:

style fixes
This commit is contained in:
Igor Sysoev 2009-10-26 16:06:11 +00:00
parent f7f963d779
commit f10b4e07a5
6 changed files with 24 additions and 21 deletions

View File

@ -30,12 +30,15 @@ ngx_cpystrn(u_char *dst, u_char *src, size_t n)
return dst;
}
for ( /* void */ ; --n; dst++, src++) {
while (--n) {
*dst = *src;
if (*dst == '\0') {
return dst;
}
dst++;
src++;
}
*dst = '\0';