[MPlayer-cvslog] r30779 - trunk/input/input.c
reimar
subversion at mplayerhq.hu
Sun Feb 28 00:09:16 CET 2010
Author: reimar
Date: Sun Feb 28 00:09:15 2010
New Revision: 30779
Log:
Support all line ending types in mp_input_read_cmd.
Modified:
trunk/input/input.c
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c Sat Feb 27 23:32:25 2010 (r30778)
+++ trunk/input/input.c Sun Feb 28 00:09:15 2010 (r30779)
@@ -957,6 +957,8 @@ mp_input_read_cmd(mp_input_fd_t* mp_fd,
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) {
More information about the MPlayer-cvslog
mailing list