From: Mikko Rasa Date: Thu, 5 Jul 2018 14:29:28 +0000 (+0300) Subject: Fix sound file signature comparisons X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=commitdiff_plain;h=1e7141871d33e3e184456ba063fcf3448a8cc12a Fix sound file signature comparisons The standard states that if a length is not given, the character array must be nul-terminated. --- diff --git a/source/mp3decoder.cpp b/source/mp3decoder.cpp index 34604e3..cc32356 100644 --- a/source/mp3decoder.cpp +++ b/source/mp3decoder.cpp @@ -84,7 +84,7 @@ bool Mp3Decoder::detect(const string &sig) static const char id3_sig[] = { 'I', 'D', '3' }; if(sig.size()