From 756b83feb1c182a28f30e0861c1770ff6698fd94 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Thu, 29 Feb 2024 02:17:39 +0100 Subject: [PATCH] elfloader: use loop variable as index Signed-off-by: Axel Heider --- elfloader-tool/src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfloader-tool/src/common.c b/elfloader-tool/src/common.c index 9846422f..bb2d0819 100644 --- a/elfloader-tool/src/common.c +++ b/elfloader-tool/src/common.c @@ -599,7 +599,7 @@ int load_images( "app.bin", // hash file next_phys_addr, 1, // keep ELF headers - &user_info[*num_images], + &user_info[i], &next_phys_addr); if (0 != ret) { printf("ERROR: Could not load user image ELF\n");