summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/file_sql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_sql.c b/src/file_sql.c
index c7f9da6..9c49373 100644
--- a/src/file_sql.c
+++ b/src/file_sql.c
@@ -56,7 +56,11 @@ static int header_check_sqlite(const unsigned char *buffer, const unsigned int b
if(memcmp(buffer,sqlite_header,sizeof(sqlite_header))==0)
{
reset_file_recovery(file_recovery_new);
+#ifdef DJGPP
+ file_recovery_new->extension="sql";
+#else
file_recovery_new->extension=file_hint_sqlite.extension;
+#endif
return 1;
}
return 0;