[Mplayer-cvslog] CVS: main playtreeparser.c,1.3,1.4
Alban Bedel CVS
albeu at mplayer.dev.hu
Sun Feb 3 17:49:43 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv16950
Modified Files:
playtreeparser.c
Log Message:
Correct bug in plaintext parser : correctly remove trailling \r
Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- playtreeparser.c 22 Jan 2002 22:46:12 -0000 1.3
+++ playtreeparser.c 3 Feb 2002 16:49:41 -0000 1.4
@@ -194,7 +194,7 @@
}
else {
- if(r > 0 && p->buffer[r-1] == '\r') r--;
+ if(*(end-1) == '\r') end--;
file = (char*)malloc((end-(&p->buffer[r])+1)*sizeof(char));
if(file == NULL) {
mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't allocate %d bytes of memory\n",p->buffer_size*sizeof(char));
More information about the MPlayer-cvslog
mailing list