Ticket #445: no_octal.diff

File no_octal.diff, 433 bytes (added by reimar, 20 years ago)

Disable parsing as octal values, always try decimal first

  • m_option.c

     
    143143  if (param == NULL)
    144144    return M_OPT_MISSING_PARAM;
    145145
     146  tmp_int = strtol(param, &endptr, 10);
     147  if (*endptr)
    146148  tmp_int = strtol(param, &endptr, 0);
    147149  if (*endptr) {
    148150    mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",name, param);