Skip to content

Commit d12c79e

Browse files
dgarskedanielinux
authored andcommitted
Fix issue with pointer increment in update_disk.c loader refactor
1 parent afb9c84 commit d12c79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update_disk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void RAMFUNCTION wolfBoot_start(void)
211211
load_off = 0;
212212
do {
213213
ret = disk_part_read(BOOT_DISK, cur_part, load_off,
214-
DISK_BLOCK_SIZE, (uint8_t *)(load_address + load_off));
214+
DISK_BLOCK_SIZE, ((uint8_t *)load_address) + load_off);
215215
if (ret < 0)
216216
break;
217217
load_off += ret;

0 commit comments

Comments
 (0)