summaryrefslogtreecommitdiff
path: root/lib/avb/fsl/fsl_bootctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/avb/fsl/fsl_bootctl.c')
-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;