Prevent out of array index

This commit is contained in:
Pasi Kallinen
2018-11-07 18:39:00 +02:00
parent 0fb263ea88
commit c6ade9c715

View File

@@ -3912,9 +3912,9 @@ int n;
xchar xx = (xchar) x, yy = (xchar) y;
while (n > 0) {
--n;
if (xs[n] == xx && ys[n] == yy)
return TRUE;
--n;
}
return FALSE;
}