sanity check parameters to moveImage. Just print a warning and return if

they are insane.  Not the best fix, but I don't know enough to figure out
what should really happen...

svn path=/trunk/kdebase/konsole/; revision=33437
wilder-portage
Preston Brown 27 years ago
parent 1e3c3e2795
commit a98cc0d90d
  1. 4
      src/TEScreen.C

@ -862,6 +862,10 @@ void TEScreen::clearImage(int loca, int loce, char c)
void TEScreen::moveImage(int dst, int loca, int loce)
{
//FIXME: check positions
if (loce < loca) {
qDebug("WARNING!!! call to TEScreen:moveImage with loce < loca!");
return;
}
memmove(&image[dst],&image[loca],(loce-loca+1)*sizeof(ca));
}

Loading…
Cancel
Save