summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorji.luo <ji.luo@nxp.com>2017-09-12 16:06:49 +0800
committerji.luo <ji.luo@nxp.com>2017-11-22 10:35:48 +0800
commit87a04c5371c5c2d1f6e643ee99873ebb89d5b3ad (patch)
tree945b65dcb5440f26a54462ee1705d82fe365f963
parent62199edbd08394e883f29b88e381850705351b7a (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>
-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;