You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/20 06:45:21 UTC
[incubator-nuttx-apps] branch master updated: wapi: fix passphrase can not update if prefix is same
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new dc90c5241 wapi: fix passphrase can not update if prefix is same
dc90c5241 is described below
commit dc90c52413d779869391d6020b87e3591453c2d7
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Fri Nov 18 19:49:56 2022 +0800
wapi: fix passphrase can not update if prefix is same
Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
wireless/wapi/src/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wireless/wapi/src/util.c b/wireless/wapi/src/util.c
index e30fd4fad..e44df96f8 100644
--- a/wireless/wapi/src/util.c
+++ b/wireless/wapi/src/util.c
@@ -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;
}