Fix overflow in automatic switch audio file playing, thanks Damjan
This commit is contained in:
@@ -324,7 +324,7 @@ void getSwitchAudioFile(char * filename, int index)
|
|||||||
str += 5;
|
str += 5;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
str += 1;
|
*(str+1) = 0;
|
||||||
}
|
}
|
||||||
strcat(str, SOUNDS_EXT);
|
strcat(str, SOUNDS_EXT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user