summaryrefslogtreecommitdiff
path: root/libbb/unicode.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-10-09 21:59:49 +0200
committerDenys Vlasenko2010-10-09 21:59:49 +0200
commit468c326d6a9035314add6d431301f3840629c976 (patch)
treefb2fbca7fcbeec23681c8e97a311f7eae612281c /libbb/unicode.c
parent5e891f30d376bb83d391790173b1c189f4bb22cd (diff)
downloadbusybox-1_17_3.zip
busybox-1_17_3.tar.gz
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 d6fcf7a..5a657b2 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)
size_t len = wcrtomb_internal(tbuf, wc);
if (len > n)
- len = n;
+ break;
memcpy(dest, tbuf, len);
if (wc == L'\0')
return org_n - n;