commit | f36078ad3f624400cb4e66aca95bf44d60348958 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Thu May 03 14:00:31 2018 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Thu May 03 14:00:31 2018 +0200 |
tree | 0757ce675b6784e09c636214f040984d340410d3 | |
parent | 583fb155d44de56f376bb17d0830d27718c40e44 [diff] |
Handle hexadecimal and octal parameters
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx index 418a0c9..619c4d5 100644 --- a/common/rfb/Configuration.cxx +++ b/common/rfb/Configuration.cxx
@@ -338,7 +338,7 @@ 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;