Permalink
Browse files

Loop shoud start with i = 1 now

  • Loading branch information...
Guillem96 committed Sep 27, 2018
1 parent 6fae934 commit c5850b2a5de77cf53feec8cdd0be12d1477db96b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/firmware.c
View
@@ -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;

0 comments on commit c5850b2

Please sign in to comment.