wapi: fix passphrase can not update if prefix is same

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2022-11-18 19:49:56 +08:00 committed by Petro Karashchenko
parent 0c200b8966
commit dc90c52413

View File

@ -148,7 +148,7 @@ static bool wapi_json_update(FAR cJSON *root,
int len = strlen(obj->valuestring);
if (len > 0)
{
if (!strncmp(value, obj->valuestring, len))
if (!strcmp(value, obj->valuestring))
{
return false;
}