diff --git a/frameworks/native/hichecker.cpp b/frameworks/native/hichecker.cpp index dc8a3ac7719251dea17decba669778ecbf411316..0858436e940b1df1a1be2c236b48adfb1eedb668 100644 --- a/frameworks/native/hichecker.cpp +++ b/frameworks/native/hichecker.cpp @@ -245,7 +245,7 @@ void HiChecker::InitHicheckerParam(const char *processName) paramOutBuf[retLen] = '\0'; HILOG_INFO(LOG_CORE, "hichecker param value is %{public}s", paramOutBuf); char *endPtr = nullptr; - uint64_t rule = strtoul(paramOutBuf, &endPtr, BASE_TAG); + uint64_t rule = strtoull(paramOutBuf, &endPtr, BASE_TAG); if (!(rule & ALLOWED_RULE)) { HILOG_ERROR(LOG_CORE, "not allowed param."); return;