mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
Fix the bug found by Martin Wulffeld
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10695 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e30d189b3e
commit
8a85640354
@ -107,6 +107,7 @@ play_tree_parser_get_line(play_tree_parser_t* p) {
|
||||
if(end[0] != '\0') {
|
||||
p->buffer_end -= end-p->iter;
|
||||
memmove(p->buffer,end,p->buffer_end);
|
||||
p->buffer[p->buffer_end] = '\0';
|
||||
} else
|
||||
p->buffer_end = 0;
|
||||
p->iter = p->buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user