diff --git a/source/rofi.c b/source/rofi.c index a88cb973..58cd6873 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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); }