mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 17:56:21 +00:00
Fix invalid read in titlebar
This commit is contained in:
@@ -197,9 +197,10 @@ _title_bar_draw(void)
|
||||
char *title = win_get_title(current);
|
||||
|
||||
mvwprintw(win, 0, 0, " %s", title);
|
||||
free(title);
|
||||
pos = strlen(title) + 1;
|
||||
|
||||
free(title);
|
||||
|
||||
// presence is written from the right side
|
||||
// calculate it first so we have a maxposition
|
||||
maxrightpos = _show_self_presence();
|
||||
|
||||
Reference in New Issue
Block a user