mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
1000l, play_tree_parser_stop_keeping broke 0-termination of buffer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28219 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
67ff2e11b8
commit
756e662b68
@ -133,6 +133,7 @@ play_tree_parser_stop_keeping(play_tree_parser_t* p) {
|
|||||||
p->buffer_end -= p->iter -p->buffer;
|
p->buffer_end -= p->iter -p->buffer;
|
||||||
if(p->buffer_end)
|
if(p->buffer_end)
|
||||||
memmove(p->buffer,p->iter,p->buffer_end);
|
memmove(p->buffer,p->iter,p->buffer_end);
|
||||||
|
p->buffer[p->buffer_end] = 0;
|
||||||
p->iter = p->buffer;
|
p->iter = p->buffer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user