Prevent buffer overflow when reading script.

This commit is contained in:
Steve 2015-12-06 15:03:59 +00:00
parent 28a4cda6fd
commit 7c99ccc845
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static void executeNextLine(ScriptRunner *runner)
}
else if (strcmp(command, "MSG_BOX") == 0)
{
sscanf(line, "%*s %[^;]%*c%[^\n]", strParam[0], strParam[1]);
sscanf(line, "%*s %255[^;]%*c%255[^\n]", strParam[0], strParam[1]);
addMessageBox(strParam[0], strParam[1]);
}
else if (strcmp(command, "WAIT") == 0)