summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-12-28 11:58:59 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2019-12-28 11:58:59 +0100
commit8fa5b43d03ae21cfd8bfcd4fab0409af5e768dec (patch)
treec0194c6e5042cc9e526d9dd95d60c3f3f4ae3e7a
parentbb3993d045eb1eb8822e443ea3b8fedcd98d0d4a (diff)
PhotoRec: stricter check in src/file_pdf.c
-rw-r--r--src/file_pdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index 97dd434..1311539 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;