mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 12:15:33 -04:00
Fix another possible index-out-of-bounds when inserting characters. Fix terminal display image buffer overflow when rendering double-height lines.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709594
This commit is contained in:
@@ -307,6 +307,9 @@ void Screen::insertChars(int n)
|
||||
{
|
||||
if (n == 0) n = 1; // Default
|
||||
|
||||
if ( screenLines[cuY].size() < cuX )
|
||||
screenLines[cuY].resize(cuX);
|
||||
|
||||
screenLines[cuY].insert(cuX,n,' ');
|
||||
|
||||
if ( screenLines[cuY].count() > columns )
|
||||
|
||||
Reference in New Issue
Block a user