summaryrefslogtreecommitdiffstats
path: root/src/file_pcap.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_pcap.c
parent38539a2f59a8d9a92e51d43bde34b01fa70601cd (diff)
PhotoRec: avoid extension with more than 3 letters for DOS/DJGPP version
Diffstat (limited to 'src/file_pcap.c')
-rw-r--r--src/file_pcap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_pcap.c b/src/file_pcap.c
index e6fb3d6..4c1c2a1 100644
--- a/src/file_pcap.c
+++ b/src/file_pcap.c
@@ -56,7 +56,11 @@ static int header_check_pcap(const unsigned char *buffer, const unsigned int buf
if(memcmp(buffer, pcap_header, sizeof(pcap_header))==0)
{
reset_file_recovery(file_recovery_new);
+#ifdef DJGPP
+ file_recovery_new->extension="pcp";
+#else
file_recovery_new->extension=file_hint_pcap.extension;
+#endif
return 1;
}
return 0;