瀏覽代碼

Handle hexadecimal and octal parameters

tags/v1.8.90
Pierre Ossman 6 年之前
父節點
當前提交
f36078ad3f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      common/rfb/Configuration.cxx

+ 1
- 1
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;

Loading…
取消
儲存