Mercurial > mplayer.hg
changeset 30737:8a9667eccbf7
Support all line ending types in mp_input_read_cmd.
author | reimar |
---|---|
date | Sat, 27 Feb 2010 23:09:15 +0000 |
parents | 5a451be4f907 |
children | 25622198a15a |
files | input/input.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Sat Feb 27 22:32:25 2010 +0000 +++ b/input/input.c Sat Feb 27 23:09:15 2010 +0000 @@ -957,6 +957,8 @@ 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) {