summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-12-07 20:29:41 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2019-12-07 20:29:41 +0100
commiteb2a270bfaa1fb39182dcf5622e21896afd5ec0c (patch)
tree4d3ce16bd3759cc40d96445d5dad3d361c21df49
parent70089760f4afaf47db99fe2cae92ec290cc4b97d (diff)
src/file_pdf.c: fix two wrong casting (regression)
-rw-r--r--src/file_pdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index c62b9bf..97dd434 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -250,11 +250,11 @@ static void file_date_pdf(file_recovery_t *file_recovery)
{
if(buffer[0]=='=' && (buffer[1]=='\'' || buffer[1]=='"'))
{
- file_recovery->time=get_time_from_YYYY_MM_DD_HH_MM_SS((const char *)&buffer[2]);
+ file_recovery->time=get_time_from_YYYY_MM_DD_HH_MM_SS(&buffer[2]);
}
else if(buffer[0]=='>')
{
- file_recovery->time=get_time_from_YYYY_MM_DD_HH_MM_SS((const char *)&buffer[1]);
+ file_recovery->time=get_time_from_YYYY_MM_DD_HH_MM_SS(&buffer[1]);
}
}
free(buffer);