Skip to content

Commit

Permalink
Merge pull request #41 from Wuth5/master
Browse files Browse the repository at this point in the history
[SDK] fix atcmd error caused by v19 patch
  • Loading branch information
ambiot committed Jun 6, 2023
2 parents ed0563b + 84f29db commit 3d2c957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/common/api/at_cmd/atcmd_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ void fATW4(void *arg){
ret = RTW_BADARG;
goto exit;
}
memset((char *)ap.ssid.val, '\0', sizeof(ap.ssid.val));
memset((char *)password, '\0', sizeof(password));
strncpy((char *)password, (char*)arg, sizeof(password) - 1);
ap.password = password;
ap.password_len = strlen((char*)arg);
Expand Down

0 comments on commit 3d2c957

Please sign in to comment.