diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2009-07-31 09:24:41 +0200 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2009-07-31 09:24:41 +0200 |
commit | 93fc52322be3a9e172b217622022c9e586823012 (patch) | |
tree | 774efc0b1c9be61d982b72f22cec296ae808a119 /src/file_indd.c | |
parent | 38539a2f59a8d9a92e51d43bde34b01fa70601cd (diff) |
PhotoRec: avoid extension with more than 3 letters for DOS/DJGPP version
Diffstat (limited to 'src/file_indd.c')
-rw-r--r-- | src/file_indd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_indd.c b/src/file_indd.c index 19faf81..2d2d147 100644 --- a/src/file_indd.c +++ b/src/file_indd.c @@ -72,7 +72,11 @@ static int header_check_indd(const unsigned char *buffer, const unsigned int buf if (memcmp(hdr->id,indd_header,sizeof(indd_header))==0) { reset_file_recovery(file_recovery_new); +#ifdef DJGPP + file_recovery_new->extension="ind"; +#else file_recovery_new->extension=file_hint_indd.extension; +#endif file_recovery_new->calculated_file_size=(uint64_t)(1+le32(hdr->blocks))*4096; file_recovery_new->file_check=&file_check_indd; // log_debug("header_check_indd: Guessed length: %lu.\n", indd_file_size); |