From 8fa5b43d03ae21cfd8bfcd4fab0409af5e768dec Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 28 Dec 2019 11:58:59 +0100 Subject: [PATCH] PhotoRec: stricter check in src/file_pdf.c --- src/file_pdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_pdf.c b/src/file_pdf.c index 97dd4347..13115398 100644 --- a/src/file_pdf.c +++ b/src/file_pdf.c @@ -85,7 +85,7 @@ static void file_rename_pdf(file_recovery_t *file_recovery) #else offset=ftell(handle); #endif - if(offset < 0) + if(offset <= 0) { fclose(handle); return;