Fix blindingly obvious utf-16 to utf-8 bug, fixes bug #89

This commit is contained in:
Ron Pedde 2006-05-03 04:21:28 +00:00
parent 00dd561aac
commit 4fd83e45a9
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ char *wma_utf16toutf8(unsigned char *utf16, int len) {
} }
while(bytes) { while(bytes) {
*dst++ = 0x80 | ((w1 >> (6*bytes)) & 0x3f); *dst++ = 0x80 | ((w1 >> (6*(bytes-1))) & 0x3f);
bytes--; bytes--;
} }
} }