Make string_utf16 code behave almost the same with or without iconv

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15151 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2005-04-13 19:21:05 +00:00
parent 18fe92cd19
commit 7b1bd09dbc
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ static void string_utf16(char *dest, char *src, int len) {
else
{
#endif
if (len > 499) len = 499;
for (i=0; i<len; i++) {
dest[i*2] = src[i];
dest[i*2+1] = 0;