mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user