summaryrefslogtreecommitdiffstats
path: root/src/file_dump.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_dump.c
parent38539a2f59a8d9a92e51d43bde34b01fa70601cd (diff)
PhotoRec: avoid extension with more than 3 letters for DOS/DJGPP version
Diffstat (limited to 'src/file_dump.c')
-rw-r--r--src/file_dump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_dump.c b/src/file_dump.c
index 5730758..1524f50 100644
--- a/src/file_dump.c
+++ b/src/file_dump.c
@@ -142,7 +142,11 @@ static int header_check_dump(const unsigned char *buffer, const unsigned int buf
le32(dump->c_type)==TS_TAPE)
{
reset_file_recovery(file_recovery_new);
+#ifdef DJGPP
+ file_recovery_new->extension="dmp";
+#else
file_recovery_new->extension=file_hint_dump.extension;
+#endif
return 1;
}
return 0;