summaryrefslogtreecommitdiffstats
path: root/src/file_indd.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-07-31 09:24:41 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-07-31 09:24:41 +0200
commit93fc52322be3a9e172b217622022c9e586823012 (patch)
tree774efc0b1c9be61d982b72f22cec296ae808a119 /src/file_indd.c
parent38539a2f59a8d9a92e51d43bde34b01fa70601cd (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.c4
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);