summaryrefslogtreecommitdiff
path: root/tools/rksd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rksd.c')
-rw-r--r--tools/rksd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rksd.c b/tools/rksd.c
index ff2233ff2d..e55c52267f 100644
--- a/tools/rksd.c
+++ b/tools/rksd.c
@@ -43,8 +43,8 @@ static void rksd_set_header(void *buf, struct stat *sbuf, int ifd,
RK_SPL_HDR_SIZE);
if (rkcommon_need_rc4_spl(params))
- rkcommon_rc4_encode_spl(buf, RK_SPL_START - 4,
- params->file_size - RK_SPL_START + 4);
+ rkcommon_rc4_encode_spl(buf, RK_SPL_HDR_START,
+ params->file_size - RK_SPL_HDR_START);
}
static int rksd_extract_subimage(void *buf, struct image_tool_params *params)