mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 15:10:16 +00:00
通用告警修改
Signed-off-by: Wuhongbo <wuhongbo7@h-partners.com>
This commit is contained in:
parent
2e4e53eeb0
commit
8f6b1fd120
@ -218,7 +218,7 @@ WifiErrorCode GetApIfaceName(char *ifaceName, int nameLen)
|
||||
std::string iface;
|
||||
OHOS::Wifi::ErrCode ret = hotspotPtr->GetApIfaceName(iface);
|
||||
if (ret == OHOS::Wifi::WIFI_OPT_SUCCESS) {
|
||||
if (iface.size() > nameLen) {
|
||||
if (iface.size() > static_cast<unsigned long>(nameLen)) {
|
||||
return ERROR_WIFI_INVALID_ARGS;
|
||||
}
|
||||
if (memcpy_s(ifaceName, nameLen, iface.c_str(), iface.size()) != EOK) {
|
||||
|
Loading…
Reference in New Issue
Block a user