Skip to content
Snippets Groups Projects
Commit 89dda20e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Truncate long titles in showbuf() the corrupt the screen and the heap

Don't actually truncate the string, just the display length
parent fb000384
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -2787,6 +2787,8 @@ void showbuf(uifc_winmode_t mode, int left, int top, int width, int height, cons
_setcursortype(_NOCURSOR);
title_len=strlen(title);
if(title_len + 13 + left > api->scrn_width)
title_len = api->scrn_width - (left + 13);
if((unsigned)(top+height)>=api->scrn_len)
height = api->scrn_len - top;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment