SudokuView: Check array index before the data array in _FilterString
This commit is contained in:
parent
040e39c534
commit
907046dc4d
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue