changeset 15150:38ec64821910

Make string_utf16 code behave almost the same with or without iconv
author rtognimp
date Wed, 13 Apr 2005 19:21:05 +0000
parents 8319e8b0c437
children 1edaf17d5205
files libmpdemux/asf_mmst_streaming.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asf_mmst_streaming.c	Wed Apr 13 19:10:29 2005 +0000
+++ b/libmpdemux/asf_mmst_streaming.c	Wed Apr 13 19:21:05 2005 +0000
@@ -136,6 +136,7 @@
     else
     {
 #endif
+	if (len > 499) len = 499;
 	for (i=0; i<len; i++) {
 	    dest[i*2] = src[i];
 	    dest[i*2+1] = 0;