修复AP热点显示少一位

Signed-off-by: shenqihang <shenqihang@huawei.com>
This commit is contained in:
shenqihang 2024-11-01 10:53:37 +00:00 committed by Gitee
parent d63ca0723a
commit fa809c457e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -630,7 +630,7 @@ std::string HexToString(const std::string &str)
if (str.length() <= 0) {
return result;
}
for (size_t i = 0; i < str.length() - STEP_2BIT; i += STEP_2BIT) {
for (size_t i = 0; i < str.length() - 1; i += STEP_2BIT) {
std::string byte = str.substr(i, STEP_2BIT);
char chr = 0;
int strTemp = CheckDataLegalHex(byte);