summaryrefslogtreecommitdiffstats
path: root/src/file_wv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
commite1ca4010307fb53d83c5036f6c8269eb9066c928 (patch)
tree79a9547954c70be7ddc88324990d60a163ffb16d /src/file_wv.c
parentf63304053aa32515e4853c2472fb785bcda0307c (diff)
remove always-true memcmp
Diffstat (limited to 'src/file_wv.c')
-rw-r--r--src/file_wv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_wv.c b/src/file_wv.c
index 433bc18..22019de 100644
--- a/src/file_wv.c
+++ b/src/file_wv.c
@@ -97,7 +97,7 @@ static data_check_t data_check_wv(const unsigned char *buffer, const unsigned in
const unsigned int ape_tag_size = (buffer[i+12] + (buffer[i+13]<<8) + (buffer[i+14]<<16) + (buffer[i+15]<<24))+32;
file_recovery->calculated_file_size+=ape_tag_size;
}
- else if(buffer[i]=='T' && buffer[i+1]=='A' && buffer[i+2]=='G')
+ else if(buffer[i]=='T' && buffer[i+1]=='A' && buffer[i+2]=='G')
{ /* http://www.id3.org/ID3v1 TAGv1 size = 128 bytes with header "TAG" */
file_recovery->calculated_file_size+=128;
}
@@ -105,7 +105,7 @@ static data_check_t data_check_wv(const unsigned char *buffer, const unsigned in
{
return DC_CONTINUE;
}
- else
+ else
{
return DC_STOP;
}