summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-24 19:44:39 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-24 19:44:39 +0100
commitd9a7d5788ac3c5d024fbcd66c47278a57f4557cd (patch)
tree3e91fb3fbe4e42b5e002209f739ba921131cda36 /src/file_gz.c
parentc5a5351ace941b01cf515f78b046d07ebbae4de0 (diff)
src/file_gz.c: move tar_header_posix definition
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index bbbf721..b37c20d 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -71,7 +71,6 @@ static void register_header_check_gz(file_stat_t *file_stat)
static int header_check_gz(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
- static const unsigned char tar_header_posix[8] = { 'u','s','t','a','r',' ',' ',0x00};
unsigned int off=10;
const unsigned int flags=buffer[3];
/* gzip file format:
@@ -117,6 +116,7 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
{
static const unsigned char schematic_header[12]={ 0x0a, 0x00, 0x09,
'S', 'c', 'h', 'e', 'm', 'a', 't', 'i', 'c'};
+ static const unsigned char tar_header_posix[8] = { 'u','s','t','a','r',' ',' ',0x00};
const unsigned char *buffer_compr=buffer+off;
unsigned char buffer_uncompr[512];
const unsigned int comprLen=(buffer_size<512?buffer_size:512)-off;