src/file_pdf.c: fix two wrong casting (regression)

This commit is contained in:
Christophe Grenier 2019-12-07 20:29:41 +01:00
parent 70089760f4
commit eb2a270bfa

View file

@ -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);