aboutsummaryrefslogtreecommitdiff
path: root/libbb/unicode.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-09 21:59:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-09 21:59:49 +0200
commit468c326d6a9035314add6d431301f3840629c976 (patch)
treefb2fbca7fcbeec23681c8e97a311f7eae612281c /libbb/unicode.c
parent5e891f30d376bb83d391790173b1c189f4bb22cd (diff)
downloadbusybox-w32-1_17_3.tar.gz
busybox-w32-1_17_3.tar.bz2
busybox-w32-1_17_3.zip
Apply post-1.17.2 fixes, bump version to 1.17.31_17_3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/unicode.c')
-rw-r--r--libbb/unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c
index d6fcf7a43..5a657b2d7 100644
--- a/libbb/unicode.c
+++ b/libbb/unicode.c
@@ -131,7 +131,7 @@ size_t FAST_FUNC wcstombs(char *dest, const wchar_t *src, size_t n)
131 size_t len = wcrtomb_internal(tbuf, wc); 131 size_t len = wcrtomb_internal(tbuf, wc);
132 132
133 if (len > n) 133 if (len > n)
134 len = n; 134 break;
135 memcpy(dest, tbuf, len); 135 memcpy(dest, tbuf, len);
136 if (wc == L'\0') 136 if (wc == L'\0')
137 return org_n - n; 137 return org_n - n;