Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-01-11 16:39:24 +0300
committerIgor Sysoev <igor@sysoev.ru>2010-01-11 16:39:24 +0300
commitd8be48a546a730eccc9c18c89be5fe15b4aedfac (patch)
treeab2c0e803f124087e7741044519e6f372081d7c1 /src/core/ngx_string.c
parente4bc4a2940a0d39e1b07dd9e0f30b39dfd973e18 (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.c4
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--;
}
}