summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asf_mmst_streaming.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/asf_mmst_streaming.c')
-rw-r--r--libmpdemux/asf_mmst_streaming.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c
index d05a9629cc..e364c8e31a 100644
--- a/libmpdemux/asf_mmst_streaming.c
+++ b/libmpdemux/asf_mmst_streaming.c
@@ -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;