commit | 5c6393a8d590d2df35fd245153653f6d2d4239d8 | [log] [tgz] |
---|---|---|
author | pankore <86098180+pankore@users.noreply.github.com> | Fri Sep 23 21:36:58 2022 +0800 |
committer | GitHub <noreply@github.com> | Fri Sep 23 09:36:58 2022 -0400 |
tree | ecbf7f75a1953a60823c6ccfcb29bcd24bce9d5c | |
parent | dbe192dc617265c25181921bfc342ebc8e22d7ff [diff] |
[Ameba] Fix Trailing Null (#22836) * TC-BINFO-2.1 when reading location, it shows 3 chars. Remove trailing null after getPref_str_new
diff --git a/src/platform/Ameba/AmebaConfig.cpp b/src/platform/Ameba/AmebaConfig.cpp index 5c22877..cd03445 100644 --- a/src/platform/Ameba/AmebaConfig.cpp +++ b/src/platform/Ameba/AmebaConfig.cpp
@@ -152,6 +152,7 @@ if (success == 0) { + outLen -= 1; // Don't count trailing null return CHIP_NO_ERROR; } else