diff --git a/services/dtbabilitymgr/src/distributed_ability_manager_service.cpp b/services/dtbabilitymgr/src/distributed_ability_manager_service.cpp index 51562579..a3335724 100644 --- a/services/dtbabilitymgr/src/distributed_ability_manager_service.cpp +++ b/services/dtbabilitymgr/src/distributed_ability_manager_service.cpp @@ -63,7 +63,7 @@ void DistributedAbilityManagerService::OnStart() std::lock_guard tokenLock(tokenMutex_); std::string tokenStr = system::GetParameter(TOKEN_KEY, DEFAULT_TOKEN_VALUE); if (!tokenStr.empty()) { - token_.store(std::stoi(tokenStr)); + token_.store(std::atoi(tokenStr.c_str())); } } notifierDeathRecipient_ = sptr(new NotifierDeathRecipient());