Skip to content

Commit

Permalink
MUSImporter::OpenPlaylist: plug unlikely out-of-bounds access
Browse files Browse the repository at this point in the history
shuts up a gcc warning; release build builds again
  • Loading branch information
lynxlynxlynx committed Jul 3, 2014
1 parent 8f5910d commit e70aa94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gemrb/plugins/MUSImporter/MUSImporter.cpp
Expand Up @@ -121,7 +121,11 @@ bool MUSImporter::OpenPlaylist(const char* name)
else
break;
}
pls.PLTag[p] = 0;
if (p < 9) {
pls.PLTag[p] = 0;
} else {
pls.PLTag[9] = 0;
}
p = 0;
while (i < len) {
if (( line[i] == ' ' ) || ( line[i] == '\t' ))
Expand Down

0 comments on commit e70aa94

Please sign in to comment.