Browse Source

Handle hexadecimal and octal parameters

tags/v1.8.90
Pierre Ossman 6 years ago
parent
commit
f36078ad3f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      common/rfb/Configuration.cxx

+ 1
- 1
common/rfb/Configuration.cxx View File

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

Loading…
Cancel
Save