# HG changeset patch # User albeu # Date 1019500962 0 # Node ID 8bd1c1e319fbb1421c6eefcad360a10a3f55e825 # Parent 5c36f7890b5387ee719991e701f0c9fcdd553ecc Fix a bug produced when line are terminated with \r\n and not a single \n diff -r 5c36f7890b53 -r 8bd1c1e319fb playtreeparser.c --- a/playtreeparser.c Mon Apr 22 15:53:24 2002 +0000 +++ b/playtreeparser.c Mon Apr 22 18:42:42 2002 +0000 @@ -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;