Przeglądaj źródła

Handle hexadecimal and octal parameters

tags/v1.8.90
Pierre Ossman 6 lat temu
rodzic
commit
f36078ad3f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      common/rfb/Configuration.cxx

+ 1
- 1
common/rfb/Configuration.cxx Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz