[ARM boards] Check to avoid too long paths when playing SD files

This commit is contained in:
bsongis
2013-09-27 19:09:22 +00:00
parent a02dc351f3
commit b3d5b7c107
75 changed files with 17 additions and 32336 deletions
+5
View File
@@ -659,6 +659,11 @@ void AudioQueue::playFile(const char *filename, uint8_t flags, uint8_t id)
if (!sdMounted())
return;
if (strlen(filename) > AUDIO_FILENAME_MAXLEN) {
POPUP_WARNING(STR_PATH_TOO_LONG);
return;
}
CoEnterMutexSection(audioMutex);
if (flags & PLAY_BACKGROUND) {