[Mplayer-cvslog] CVS: main playtreeparser.c,1.7,1.8
Alban Bedel CVS
albeu at mplayerhq.hu
Mon Apr 22 20:42:45 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv11333
Modified Files:
playtreeparser.c
Log Message:
Fix a bug produced when line are terminated with \r\n and not a single
\n
Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- playtreeparser.c 25 Feb 2002 11:13:34 -0000 1.7
+++ playtreeparser.c 22 Apr 2002 18:42:42 -0000 1.8
@@ -93,7 +93,7 @@
if(!p->keep) {
if(end[0] != '\0') {
- p->buffer_end -= strlen(p->line)+1;
+ p->buffer_end -= end-p->iter;
memmove(p->buffer,end,p->buffer_end);
} else
p->buffer_end = 0;
More information about the MPlayer-cvslog
mailing list