diff options
author | ji.luo <ji.luo@nxp.com> | 2017-09-12 16:06:49 +0800 |
---|---|---|
committer | ji.luo <ji.luo@nxp.com> | 2017-11-22 10:35:48 +0800 |
commit | 87a04c5371c5c2d1f6e643ee99873ebb89d5b3ad (patch) | |
tree | 945b65dcb5440f26a54462ee1705d82fe365f963 | |
parent | 62199edbd08394e883f29b88e381850705351b7a (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-x | lib/avb/fsl/fsl_bootctl.c | 2 |
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; |