]> git.zerfleddert.de Git - rsbs2/blobdiff - extract.c
don't ever update the checksum of a corrupt image
[rsbs2] / extract.c
index 86491d1cfcf47541f5dc15a255832e6c8d030f77..784821bf9ff856d8d20e8195cf4370f174654a01 100644 (file)
--- a/extract.c
+++ b/extract.c
@@ -22,7 +22,9 @@ struct file_entry* get_next_file(unsigned char *fw, int len)
        if (fw != NULL && len != 0) {
                pos = fw + 0x28;
 
+#if 0
                printf("Start of filesystem: 0x%08x\n", *((unsigned int*)pos));
+#endif
                pos = fw + *((unsigned int*)pos);
                end = fw + len;
        }
@@ -38,7 +40,9 @@ struct file_entry* get_next_file(unsigned char *fw, int len)
 
        if ((fent.length > (end - pos)) ||
            (name_length > (end - pos))) {
+#if 0
                printf("EOF reached\n");
+#endif
                return NULL;
        }
 
Impressum, Datenschutz