summaryrefslogtreecommitdiffstats
path: root/src/file_steuer2014.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-04-09 17:05:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-04-09 17:05:35 +0200
commit916cfbd5c313562c76212064438e4292a1556b1b (patch)
tree5c2f5e30cb173c426bdc5d2ed4830420c31be7c0 /src/file_steuer2014.c
parentda7dac16a1c6982bb272fcd7f8deefdc49c1daf2 (diff)
PhotoRec: fix src/file_steuer2014.c as strptime() may be missing
Diffstat (limited to 'src/file_steuer2014.c')
-rw-r--r--src/file_steuer2014.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file_steuer2014.c b/src/file_steuer2014.c
index 2645c9b..e293825 100644
--- a/src/file_steuer2014.c
+++ b/src/file_steuer2014.c
@@ -58,13 +58,15 @@ static int header_check_steuer(const unsigned char *buffer, const unsigned int b
if(h->version1!=h->version2)
return 0;
memset(&tm_time, 0, sizeof(struct tm));
- strptime(h->date_string, "%b %d %Y %H:%M:%S", &tm_time);
reset_file_recovery(file_recovery_new);
if(le32(h->version1)>=0x13)
file_recovery_new->extension="steuer2015";
else
file_recovery_new->extension=file_hint_steuer2014.extension;
+#ifdef HAVE_STRPTIME
+ strptime(h->date_string, "%b %d %Y %H:%M:%S", &tm_time);
file_recovery_new->time=mktime(&tm_time);
+#endif
return 1;
}