From 916cfbd5c313562c76212064438e4292a1556b1b Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 9 Apr 2016 17:05:35 +0200 Subject: [PATCH] PhotoRec: fix src/file_steuer2014.c as strptime() may be missing --- src/file_steuer2014.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file_steuer2014.c b/src/file_steuer2014.c index 2645c9b8..e2938258 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; }