changeset 5788:8bd1c1e319fb

Fix a bug produced when line are terminated with \r\n and not a single \n
author albeu
date Mon, 22 Apr 2002 18:42:42 +0000
parents 5c36f7890b53
children 0132c5747e8a
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;