Mercurial > mplayer.hg
diff input/input.c @ 30737:8a9667eccbf7
Support all line ending types in mp_input_read_cmd.
author | reimar |
---|---|
date | Sat, 27 Feb 2010 23:09:15 +0000 |
parents | d218228dc74d |
children | 76a13038105e |
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) {