summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorji.luo <ji.luo@nxp.com>2017-09-12 16:06:49 +0800
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:37:21 +0800
commit30e20acc011f26e92c59cafe1038c00f475ab9fd (patch)
tree55447a6f6f2920129a463fcd9f85103cc2427a22 /lib
parent3ba4ee61cf765944fd7b2446205e6c7b797ca96b (diff)
MA-10338-4 Correct 'fastboot getvar current-slot' command
Remove the underscore prefix of current slot. Change-Id: I07a0513dfcfbf395087d57e3680c8d662ec827aa Signed-off-by: ji.luo <ji.luo@nxp.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/avb/fsl/fsl_bootctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/avb/fsl/fsl_bootctl.c b/lib/avb/fsl/fsl_bootctl.c
index daed3f8b98..737be06250 100755
--- a/lib/avb/fsl/fsl_bootctl.c
+++ b/lib/avb/fsl/fsl_bootctl.c
@@ -125,7 +125,7 @@ int get_slotvar_avb(AvbABOps *ab_ops, char *cmd, char *buffer, size_t size) {
if (!strcmp_l1("current-slot", cmd)) {
int curr = get_curr_slot(&ab_data);
if (curr >= 0 && curr < SLOT_NUM)
- strlcpy(buffer, slot_suffix[curr], size);
+ strlcpy(buffer, slot_suffix[curr] + sizeof(unsigned char), size);
else {
strlcpy(buffer, "no bootable slot", size);
return -1;