[MPlayer-cvslog] r18721 - trunk/m_option.c
reimar
subversion at mplayerhq.hu
Thu Jun 15 10:09:03 CEST 2006
Author: reimar
Date: Thu Jun 15 10:09:03 2006
New Revision: 18721
Modified:
trunk/m_option.c
Log:
Do not parse numbers as octal, strip leading zeroes instead.
Modified: trunk/m_option.c
==============================================================================
--- trunk/m_option.c (original)
+++ trunk/m_option.c Thu Jun 15 10:09:03 2006
@@ -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);
More information about the MPlayer-cvslog
mailing list