mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue