summaryrefslogtreecommitdiffstats
path: root/src/file_fh10.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_fh10.c
parent38539a2f59a8d9a92e51d43bde34b01fa70601cd (diff)
PhotoRec: avoid extension with more than 3 letters for DOS/DJGPP version
Diffstat (limited to 'src/file_fh10.c')
-rw-r--r--src/file_fh10.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_fh10.c b/src/file_fh10.c
index a2c3acf..ea9b2e4 100644
--- a/src/file_fh10.c
+++ b/src/file_fh10.c
@@ -62,7 +62,11 @@ static int header_check_fh10(const unsigned char *buffer, const unsigned int buf
{
reset_file_recovery(file_recovery_new);
file_recovery_new->min_filesize=4096;
+#ifdef DJGPP
+ file_recovery_new->extension="fh1";
+#else
file_recovery_new->extension=file_hint_fh10.extension;
+#endif
return 1;
}
return 0;