# HG changeset patch # User diego # Date 1061214562 0 # Node ID 8f168a4128c5ce36139f2116825e63a499260a66 # Parent 7c404c64a2bc8a778c00f7116cda73250b048e84 a 100l and another typo spotted by Alex "eagle eye" Beregszaszi diff -r 7c404c64a2bc -r 8f168a4128c5 m_option.c --- a/m_option.c Mon Aug 18 13:39:07 2003 +0000 +++ b/m_option.c Mon Aug 18 13:49:22 2003 +0000 @@ -1049,7 +1049,7 @@ } else { if((*nold) >= oldmax) { mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: %s has only %d params, so you can't give more than %d unnamed params.\n", - opt_name,obj_name,oldmax); + opt_name,obj_name,oldmax,oldmax); return M_OPT_OUT_OF_RANGE; } opt = &desc->fields[(*nold)]; @@ -1288,7 +1288,7 @@ char* endptr; id = strtol(str_list[r],&endptr,0); if(endptr == str_list[r]) { - mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid parameter. We need a list of integers wich are the indices of the elements to remove.\n",opt_name); + mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid parameter. We need a list of integers which are the indices of the elements to remove.\n",opt_name); m_option_free(&list_opt,&str_list); return M_OPT_INVALID; }