mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Fix buffer overflow in rofi -e after reading from stdin (#2082)
This commit is contained in:
parent
329a5dd6a5
commit
4cdca24995
1 changed files with 2 additions and 0 deletions
|
@ -823,6 +823,8 @@ static gboolean startup(G_GNUC_UNUSED gpointer data) {
|
|||
msg = realloc(msg, length * sizeof(char));
|
||||
}
|
||||
|
||||
msg[index] = 0;
|
||||
|
||||
if (!rofi_view_error_dialog(msg, markup)) {
|
||||
g_main_loop_quit(main_loop);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue