[Mplayer-cvslog] CVS: main subreader.c,1.44,1.45
Arpi of Ize
arpi at mplayer.dev.hu
Tue Jan 1 02:11:41 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv1756
Modified Files:
subreader.c
Log Message:
tail_space infinite loop fix by jeon_goon at lycos.co.kr
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- subreader.c 25 Dec 2001 16:41:06 -0000 1.44
+++ subreader.c 1 Jan 2002 01:11:31 -0000 1.45
@@ -46,7 +46,7 @@
/* Remove leading and trailing space */
static void trail_space(char *s) {
int i = 0;
- while (isspace(*s)) ++i;
+ while (isspace(s[i])) ++i;
if (i) strcpy(s, s + i);
i = strlen(s) - 1;
while (i > 0 && isspace(s[i])) s[i--] = '\0';
More information about the MPlayer-cvslog
mailing list