@elextr approved this pull request.

Gold star to @b4n, one suggestion for extra points.


In src/document.c:

>  
 		if (main_status.main_window_realized)
-			dialogs_show_msgbox(GTK_MESSAGE_WARNING, warn_msg, display_filename);
+			dialogs_show_msgbox(GTK_MESSAGE_WARNING, "%s", warn_msg);
+
+		ui_set_statusbar(TRUE, "%s", warn_msg);

Maybe the format should be taken out of ui_set_statusbar and msgwin_status_add or the compiler told they are formats and.

Note this is passed through printf substitution here, in ui_set_statusbar() and msgwin_status_add() called from that.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3665/review/1703112755@github.com>