X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/81a1093d3e69b4996e56bc291759f1c17dbc2344..8658e9676d6d4923546f0eab70a4e4527d5fcde0:/extract.c diff --git a/extract.c b/extract.c index 86491d1..784821b 100644 --- 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; }