made place_client more robust against clients with obfuscated sizes

This commit is contained in:
Anselm R. Garbe 2006-04-14 11:35:42 +02:00
parent 60db995b44
commit 37f8da2353

View File

@ -169,8 +169,8 @@ place_client(Area *a, Client *c)
y = fr->rect.y / dy;
maxx = x + fr->rect.width / dx;
maxy = y + fr->rect.height / dy;
for(j = y; j < maxy; j++)
for(i = x; i < maxx; i++)
for(j = y; j < my && j < maxy; j++)
for(i = x; i < mx && i < maxx; i++)
field[j*mx + i] = False;
}