aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Configuration.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-05-03 14:00:31 +0200
committerPierre Ossman <ossman@cendio.se>2018-05-03 14:00:31 +0200
commitf36078ad3f624400cb4e66aca95bf44d60348958 (patch)
tree0757ce675b6784e09c636214f040984d340410d3 /common/rfb/Configuration.cxx
parent583fb155d44de56f376bb17d0830d27718c40e44 (diff)
downloadtigervnc-f36078ad3f624400cb4e66aca95bf44d60348958.tar.gz
tigervnc-f36078ad3f624400cb4e66aca95bf44d60348958.zip
Handle hexadecimal and octal parameters
Diffstat (limited to 'common/rfb/Configuration.cxx')
-rw-r--r--common/rfb/Configuration.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx
index 418a0c93..619c4d5a 100644
--- a/common/rfb/Configuration.cxx
+++ b/common/rfb/Configuration.cxx
@@ -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;