summaryrefslogtreecommitdiffstats
path: root/src/file_ps.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
commit90f2b63eac56a8c5dfb8d6471f817b3f9c9ecdc0 (patch)
tree5397292a9a47fd7eba91c3913f4fd396e0dccecc /src/file_ps.c
parent643d625772c17a9467512f050b95e81b83b8594c (diff)
Code cleanup
Diffstat (limited to 'src/file_ps.c')
-rw-r--r--src/file_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ps.c b/src/file_ps.c
index 91d84fe..28830ec 100644
--- a/src/file_ps.c
+++ b/src/file_ps.c
@@ -89,9 +89,9 @@ static int header_check_ps(const unsigned char *buffer, const unsigned int buffe
static int data_check_ps(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery)
{
- unsigned int i;
if(buffer_size>8)
{
+ unsigned int i;
for(i=(buffer_size/2)-4;i+4<buffer_size;i++)
{
if(buffer[i]=='%' && buffer[i+1]=='%' && buffer[i+2]=='E' && buffer[i+3]=='O' && buffer[i+4]=='F')