summaryrefslogtreecommitdiffstats
path: root/src/file_pdf.c
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2011-06-17 08:18:27 +0200
committerChristophe Grenier <[email protected]>2011-06-17 08:18:27 +0200
commit55fbf240bed9ad17dc485fd8d975cbb035237f4c (patch)
treed66efaa2cc0952c5161156d66be2055edd6d63a9 /src/file_pdf.c
parentc33ea81a36025811b31cc5342503be8ac98db031 (diff)
PhotoRec: use a bigger buffer to detect Illustrator .ai
Diffstat (limited to '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 6c506885..329d3ebd 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -68,7 +68,7 @@ static int header_check_pdf(const unsigned char *buffer, const unsigned int buff
const unsigned char sig_linearized[10]={'L','i','n','e','a','r','i','z','e','d'};
const unsigned char *src;
reset_file_recovery(file_recovery_new);
- if(td_memmem(buffer, 512, "<</Illustrator ", 15) != NULL)
+ if(td_memmem(buffer, buffer_size, "<</Illustrator ", 15) != NULL)
file_recovery_new->extension="ai";
else
file_recovery_new->extension=file_hint_pdf.extension;