Explorar el Código

Handle hexadecimal and octal parameters

tags/v1.8.90
Pierre Ossman hace 6 años
padre
commit
f36078ad3f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      common/rfb/Configuration.cxx

+ 1
- 1
common/rfb/Configuration.cxx Ver fichero

@@ -338,7 +338,7 @@ bool
IntParameter::setParam(const char* v) {
if (immutable) return true;
vlog.debug("set %s(Int) to %s", getName(), v);
int i = atoi(v);
int i = strtol(v, NULL, 0);
if (i < minValue || i > maxValue)
return false;
value = i;

Cargando…
Cancelar
Guardar