From 6dc1b1fd0cbad636f61cf7ecbf01e815d4dc29e7 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Mon, 25 Nov 2002 14:17:15 +0000 Subject: 10l my last fix choked the last command definition, this fix seems to work correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8276 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index f6b6b823bb..d118ddf433 100644 --- a/input/input.c +++ b/input/input.c @@ -1247,7 +1247,7 @@ mp_input_parse_config(char *file) { } } // Empty buffer : return - if(eof || (bs <= 0)) { + if(bs <= 1) { mp_msg(MSGT_INPUT,MSGL_INFO,"Input config file %s parsed : %d binds\n",file,n_binds); if(binds) cmd_binds = binds; @@ -1351,7 +1351,7 @@ mp_input_parse_config(char *file) { char cmd[end-iter+1]; strncpy(cmd,iter,end-iter); cmd[end-iter] = '\0'; - //printf("Set bind %d => %s\n",code,cmd); + //printf("Set bind %d => %s\n",keys[0],cmd); mp_input_bind_keys(keys,cmd); n_binds++; } -- cgit v1.2.3