changeset 18718:7ef29a590f3f

Do not parse numbers as octal, strip leading zeroes instead.
author reimar
date Thu, 15 Jun 2006 08:09:03 +0000
parents 0f99a5fe9c7f
children 5d01eb066fa3
files m_option.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);