Fix Clang compiler warnings.

This commit is contained in:
Justin Maggard
2014-03-07 12:42:40 -08:00
parent 546b12e1a9
commit a606012d23
3 changed files with 10 additions and 9 deletions

View File

@ -100,7 +100,7 @@ _get_wavtags(char *filename, struct song_metadata *psong)
// isprint(hdr[3]) ? hdr[3] : '?',
// block_len);
if(block_len < 0)
if(block_len > psong->file_size)
{
close(fd);
DPRINTF(E_WARN, L_SCANNER, "Bad block len: %s\n", filename);