tuxtxt.cpp:fix error array-bound

This commit is contained in:
Jacek Jendrzej
2015-03-19 17:20:36 +01:00
parent ff1a7b8640
commit fd84ed4100

View File

@@ -3213,7 +3213,8 @@ void ConfigMenu(int Init)
for (i1=hotindex; i1<maxhotlist; i1++) /* move rest of list */
{
hotlist[i1] = hotlist[i1+1];
if(i1+1<maxhotlist)
hotlist[i1] = hotlist[i1+1];
}
maxhotlist--;
if (hotindex > maxhotlist)