# HG changeset patch # User atmos4 # Date 1038233835 0 # Node ID 1fb6b78d62d67d5a886c18e970ed6aac7907c236 # Parent be311f8284768f390bf6cd5f0e51baf583801889 10l my last fix choked the last command definition, this fix seems to work correct. diff -r be311f828476 -r 1fb6b78d62d6 input/input.c --- a/input/input.c Mon Nov 25 13:28:40 2002 +0000 +++ b/input/input.c Mon Nov 25 14:17:15 2002 +0000 @@ -1247,7 +1247,7 @@ } } // 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 @@ 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++; }