-
- fwrite(&sign, sizeof(long), 1, fpOut);
- fwrite(&length, sizeof(long), 1, fpOut);
- fwrite(&start_addr, sizeof(long), 1, fpOut);
+ /* write the modified file */
+ fwrite(&sign, sizeof(uint32_t), 1, fpOut);
+ fwrite(&length, sizeof(uint32_t), 1, fpOut);
+ fwrite(&start_addr, sizeof(uint32_t), 1, fpOut);