Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Loop shoud start with i = 1 now
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem96 committed Sep 27, 2018
1 parent 6fae934 commit c5850b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void patchFS(pkg2_kip1_info_t* ki) {
pos += moddedKip->sections[0].size_comp;
moddedKip->sections[0].size_comp = moddedKip->sections[0].size_decomp;

for(int i = 0; i < KIP1_NUM_SECTIONS; i++) {
for(int i = 1; i < KIP1_NUM_SECTIONS; i++) {
if(moddedKip->sections[i].offset != 0) {
memcpy((void*)moddedKip->data + pos + sizeDiff, (void*)ki->kip1->data + pos, moddedKip->sections[i].size_comp);
pos += moddedKip->sections[i].size_comp;
Expand Down

0 comments on commit c5850b2

Please # to comment.