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 <zhanghon...@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 <zhanghon...@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;
                 }

Reply via email to