wapi: fix passphrase can not update if prefix is same
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
0c200b8966
commit
dc90c52413
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user