Fixed bad bug that would read outside buffer

This commit is contained in:
Daniel Collin 2014-09-15 20:58:32 +02:00
parent 8e494a71ab
commit ed306d3c48

View File

@ -285,7 +285,7 @@ static int getPrevMark(const int* marks, int count, int row, int defValue)
if (!marks)
return defValue;
for (i = count; i >= 0; --i)
for (i = count - 1; i >= 0; --i)
{
const int v = marks[i];