diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-09 21:59:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-09 21:59:49 +0200 |
commit | 468c326d6a9035314add6d431301f3840629c976 (patch) | |
tree | fb2fbca7fcbeec23681c8e97a311f7eae612281c /libbb/unicode.c | |
parent | 5e891f30d376bb83d391790173b1c189f4bb22cd (diff) | |
download | busybox-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.c | 2 |
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; |