Skip to content

Commit 5ed71ac

Browse files
committed
cppcheck static analysis fix
1 parent b1ea9e8 commit 5ed71ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ static int copy_flash_buffered(uintptr_t src_addr, uintptr_t dst_addr,
13941394
else
13951395
#endif
13961396
{
1397-
memcpy(buffer, (const void*)src_addr + bytes_copied, chunk_size);
1397+
memcpy(buffer, (const void*)(src_addr + bytes_copied), chunk_size);
13981398
}
13991399

14001400
/* Write the chunk from the RAM buffer to the destination flash */

0 commit comments

Comments
 (0)