diff --git a/Source/core/JSONRPC.h b/Source/core/JSONRPC.h index dad7295bb..5f3f46962 100644 --- a/Source/core/JSONRPC.h +++ b/Source/core/JSONRPC.h @@ -205,7 +205,7 @@ namespace Core { index = pos; } - if (index < pos) { + if (index < pos && isdigit(designator[index])) { result = static_cast(atoi(designator.substr(index, pos - index).c_str())); } }