SudokuView: Check array index before the data array in _FilterString

This commit is contained in:
Lioncash 2014-09-26 08:57:03 -04:00 committed by François Revol
parent 040e39c534
commit 907046dc4d
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ SudokuView::_FilterString(const char* data, size_t dataLength, char* buffer,
{
uint32 maxOut = fField->Size() * fField->Size();
for (uint32 i = 0; data[i] && i < dataLength; i++) {
for (uint32 i = 0; i < dataLength && data[i]; i++) {
if (data[i] == '#')
ignore = true;
else if (data[i] == '\n')