mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
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:
parent
2beca14c04
commit
281eecb323
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user