mirror of https://github.com/mpv-player/mpv
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11227 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3a177a1741
commit
7c91720081
|
@ -107,13 +107,12 @@ static void string_utf16(char *dest, char *src, int len)
|
|||
{
|
||||
int i;
|
||||
|
||||
memset (dest, 0, 1000);
|
||||
|
||||
for (i=0; i<len; i++) {
|
||||
dest[i*2] = src[i];
|
||||
dest[i*2+1] = 0;
|
||||
}
|
||||
|
||||
/* trailing zeroes */
|
||||
dest[i*2] = 0;
|
||||
dest[i*2+1] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue