# HG changeset patch # User reimar # Date 1150358943 0 # Node ID 7ef29a590f3f342df8a1b3f954408455dfad0a16 # Parent 0f99a5fe9c7f7acdb895d0648ee2ceab84c6c291 Do not parse numbers as octal, strip leading zeroes instead. diff -r 0f99a5fe9c7f -r 7ef29a590f3f m_option.c --- a/m_option.c Thu Jun 15 08:05:51 2006 +0000 +++ b/m_option.c Thu Jun 15 08:09:03 2006 +0000 @@ -143,6 +143,8 @@ if (param == NULL) return M_OPT_MISSING_PARAM; + tmp_int = strtol(param, &endptr, 10); + if (*endptr) tmp_int = strtol(param, &endptr, 0); if (*endptr) { mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",name, param);