diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-01-11 16:39:24 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-01-11 16:39:24 +0300 |
commit | d8be48a546a730eccc9c18c89be5fe15b4aedfac (patch) | |
tree | ab2c0e803f124087e7741044519e6f372081d7c1 /src/core/ngx_string.c | |
parent | e4bc4a2940a0d39e1b07dd9e0f30b39dfd973e18 (diff) |
fix ngx_utf8_cpystrn(): it did not fully copy utf-8 string
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 613ce93b8..829913483 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -1239,10 +1239,8 @@ ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len) break; } - len--; - while (src < next) { - *++dst = *++src; + *dst++ = *src++; len--; } } |