summaryrefslogtreecommitdiffstats
path: root/src/file_flac.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 19:20:40 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 19:20:40 +0100
commit59222e7a85e501074cfa981f1fbbe24005522b57 (patch)
tree8482d888253ccb13a47c22b17d2556065ad73acc /src/file_flac.c
parentf46267b9202ac6bab7b6b94368ce388b4552ce80 (diff)
src/file_flac.c: add missing return value (bug introduced in 5f635200cf8795e91b8baebdadf5fe094e6ecfbd)
Diffstat (limited to 'src/file_flac.c')
-rw-r--r--src/file_flac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/file_flac.c b/src/file_flac.c
index 33d14a3..ec2eedd 100644
--- a/src/file_flac.c
+++ b/src/file_flac.c
@@ -51,13 +51,14 @@ static int header_check_flac(const unsigned char *buffer, const unsigned int buf
#else
file_recovery_new->extension=file_hint_flac.extension;
#endif
+ return 1;
}
static void register_header_check_flac(file_stat_t *file_stat)
{
/* Stream marker followed by STREAMINFO Metadata block */
- static const unsigned char flac_header[4]= {'f', 'L', 'a', 'C', 0x00};
- static const unsigned char flac_header2[4]= {'f', 'L', 'a', 'C', 0x80};
+ static const unsigned char flac_header[5]= {'f', 'L', 'a', 'C', 0x00};
+ static const unsigned char flac_header2[5]= {'f', 'L', 'a', 'C', 0x80};
register_header_check(0, flac_header,sizeof(flac_header), &header_check_flac, file_stat);
register_header_check(0, flac_header2,sizeof(flac_header2), &header_check_flac, file_stat);
}