Fix a bug produced when line are terminated with \r\n and not a single
\n git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5789 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
1 parent
2beca14c04
commit
281eecb323
1 file changed
+1
-1
+1
-1
@@ -93,7 +93,7 @@ play_tree_parser_get_line(play_tree_parser_t* p) {
|
||||
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user