mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
Support all line ending types in mp_input_read_cmd.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30779 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5a1eca395c
commit
67f9e11d93
@ -957,6 +957,8 @@ mp_input_read_cmd(mp_input_fd_t* mp_fd, char** ret) {
|
||||
int l = 0;
|
||||
// Find the cmd end
|
||||
mp_fd->buffer[mp_fd->pos] = '\0';
|
||||
end = strchr(mp_fd->buffer,'\r');
|
||||
if (end) *end = '\n';
|
||||
end = strchr(mp_fd->buffer,'\n');
|
||||
// No cmd end ?
|
||||
if(!end) {
|
||||
|
Loading…
Reference in New Issue
Block a user