# HG changeset patch # User John W. Eaton # Date 1679294054 14400 # Node ID cdde21868c2da42867587b357a1290f809ac79bb # Parent 31f9e97759b466d92aec8e752bce8f50ec945a19 avoid clang warning about possible* buffer overflow (*) Actual overflow could have only occurred for extremely large screen sizes, but we might as well avoid the warning. * Vt102Emulation.cpp (Vt102Emulation::reportCursorPosition): Increase buffer from 20 to 32 bytes. diff -r 31f9e97759b4 -r cdde21868c2d libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp --- a/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp Mon Mar 20 12:51:04 2023 -0400 +++ b/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp Mon Mar 20 02:34:14 2023 -0400 @@ -826,7 +826,7 @@ */ void Vt102Emulation::reportCursorPosition() -{ char tmp[20]; +{ char tmp[32]; sprintf(tmp,"\033[%d;%dR",_currentScreen->getCursorY()+1,_currentScreen->getCursorX()+1); sendString(tmp); }