X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Flocale%2Ficonv.c;h=a2332ce007a45a7f70b971f8a81c4bff0c95180c;hb=3df0b66ee95c837496ae434ba7a2282d97ca71ef;hp=7b341fe9fcb99c0c30c63179d1fb36ebafce8dcf;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl diff --git a/src/locale/iconv.c b/src/locale/iconv.c index 7b341fe9..a2332ce0 100644 --- a/src/locale/iconv.c +++ b/src/locale/iconv.c @@ -316,8 +316,8 @@ size_t iconv(iconv_t cd0, char **restrict in, size_t *restrict inb, char **restr } d = c; for (c=0; c<128-totype; c++) { - if (d == legacy_chars[ map[c*5/4]>>2*c%8 | - map[c*5/4+1]<<8-2*c%8 & 1023 ]) { + if (d == legacy_chars[ tomap[c*5/4]>>2*c%8 | + tomap[c*5/4+1]<<8-2*c%8 & 1023 ]) { c += 128; goto revout; }