diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/asf_mmst_streaming.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c index 11c46a2ef7..24a7d8abd6 100644 --- a/libmpdemux/asf_mmst_streaming.c +++ b/libmpdemux/asf_mmst_streaming.c @@ -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; } |