summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-21 14:46:40 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-21 14:46:40 -0400
commit80d7859f32c11826c24490cac8a8be48f737cee0 (patch)
tree29a1d8c517a3c2c6028a52ef1255120c33e0b8fb /src
parent77731d0ec16027cb0e3a593d5dd9bb906932303e (diff)
downloadmusl-80d7859f32c11826c24490cac8a8be48f737cee0.tar.gz
musl-80d7859f32c11826c24490cac8a8be48f737cee0.tar.bz2
musl-80d7859f32c11826c24490cac8a8be48f737cee0.tar.xz
musl-80d7859f32c11826c24490cac8a8be48f737cee0.zip
fix major breakage in iconv, bogus rejecting of dest charsets
Diffstat (limited to 'src')
-rw-r--r--src/locale/iconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/iconv.c b/src/locale/iconv.c
index a7d4fd9f..30a457f3 100644
--- a/src/locale/iconv.c
+++ b/src/locale/iconv.c
@@ -94,7 +94,7 @@ iconv_t iconv_open(const char *to, const char *from)
if ((t = find_charmap(to))==-1
|| (f = find_charmap(from))==-1
- || (t >= 0320)) {
+ || (charmaps[t] >= 0320)) {
errno = EINVAL;
return (iconv_t)-1;
}