From 1e7141871d33e3e184456ba063fcf3448a8cc12a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 5 Jul 2018 17:29:28 +0300 Subject: [PATCH] Fix sound file signature comparisons The standard states that if a length is not given, the character array must be nul-terminated. --- source/mp3decoder.cpp | 2 +- source/oggdecoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()