From f36078ad3f624400cb4e66aca95bf44d60348958 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 3 May 2018 14:00:31 +0200 Subject: [PATCH] Handle hexadecimal and octal parameters --- common/rfb/Configuration.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5