summaryrefslogtreecommitdiffstats
path: root/src/file_asf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:19:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:19:38 +0200
commitf29c37c87b097e8761ec359165f27a0ff786368f (patch)
treed3b9e2ca5ab40a0df763f2be12e3d02ef063f0a1 /src/file_asf.c
parent6cbb862854011bf8fec7f17a303563faa9b953eb (diff)
Make some variables more local
Diffstat (limited to 'src/file_asf.c')
-rw-r--r--src/file_asf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file_asf.c b/src/file_asf.c
index c0ff20f..8f9fbd4 100644
--- a/src/file_asf.c
+++ b/src/file_asf.c
@@ -73,10 +73,6 @@ static int header_check_asf(const unsigned char *buffer, const unsigned int buff
0x30, 0x26, 0xb2, 0x75, 0x8e, 0x66, 0xcf, 0x11,
0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c
};
- static const unsigned char asf_file_prop_id[16]= {
- 0xa1, 0xdc, 0xab, 0x8c, 0x47, 0xa9, 0xcf, 0x11,
- 0x8e, 0xe4, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65
- };
if(memcmp(buffer, asf_header_id, sizeof(asf_header_id))==0)
{
unsigned int i;
@@ -89,6 +85,10 @@ static int header_check_asf(const unsigned char *buffer, const unsigned int buff
(const unsigned char *)(asf_file_prop+1) < buffer + buffer_size;
i++)
{
+ static const unsigned char asf_file_prop_id[16]= {
+ 0xa1, 0xdc, 0xab, 0x8c, 0x47, 0xa9, 0xcf, 0x11,
+ 0x8e, 0xe4, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65
+ };
if(memcmp(asf_file_prop->object_id, asf_file_prop_id, sizeof(asf_file_prop_id))==0)
{
file_recovery_new->calculated_file_size=le64(asf_file_prop->file_size);