Fix out-of-bounds array access when increasing screen count with randr1.2.

BUG: 163045


svn path=/branches/KDE/4.1/kdebase/workspace/; revision=839193
This commit is contained in:
Luboš Luňák 2008-07-29 13:37:37 +00:00
parent 68110d05fb
commit 62140fa26b

View file

@ -175,8 +175,10 @@ void Workspace::updateClientArea( bool force )
{
if( workarea[ i ] != new_wareas[ i ] )
changed = true;
if( screenarea[ i ].size() != new_sareas[ i ].size())
changed = true;
for( int iS = 0;
iS < nscreens;
!changed && iS < nscreens;
iS ++ )
if (new_sareas[ i ][ iS ] != screenarea [ i ][ iS ])
changed = true;