diff --git a/common/sw-update/versions-db-manager.h b/common/sw-update/versions-db-manager.h index c35119ed30..1714ccc670 100644 --- a/common/sw-update/versions-db-manager.h +++ b/common/sw-update/versions-db-manager.h @@ -53,7 +53,11 @@ namespace rs2 mnor = atoi(std::string(match[2]).c_str()); patch = atoi(std::string(match[3]).c_str()); if (match.size() == MATCH_SECTIONS_INC_BUILD_NUM) - build = atoi(std::string(match[4]).c_str()); + { + auto build_str = std::string(match[4]); + if (build_str.size() >= 2) + build = atoi(&build_str[1]); + } } }