summaryrefslogtreecommitdiffstats
path: root/src/file_ogg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-22 19:06:11 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-22 19:06:11 +0100
commitd04321d68a48d402c164a7b9f9ccee676b87a68d (patch)
tree891aa5417d36f2e0ee26f5b5f19e422386ae444d /src/file_ogg.c
parent4aedccda8b0f5abda323556d4bba6856d97bc655 (diff)
PhotoRec: identified some constants as is
Diffstat (limited to 'src/file_ogg.c')
-rw-r--r--src/file_ogg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ogg.c b/src/file_ogg.c
index 9549738..8207330 100644
--- a/src/file_ogg.c
+++ b/src/file_ogg.c
@@ -76,7 +76,7 @@ static int data_check_ogg(const unsigned char *buffer, const unsigned int buffer
while(file_recovery->calculated_file_size + buffer_size/2 >= file_recovery->file_size &&
file_recovery->calculated_file_size + 27 +255 < file_recovery->file_size + buffer_size/2)
{
- unsigned int i=file_recovery->calculated_file_size - file_recovery->file_size + buffer_size/2;
+ const unsigned int i=file_recovery->calculated_file_size - file_recovery->file_size + buffer_size/2;
if(memcmp(&buffer[i],ogg_header,sizeof(ogg_header))==0)
{
unsigned int number_page_segments;