[geany/geany] ccbf0d: Avoid passing plain strings as format

Colomban Wendling git-noreply at xxxxx
Tue Apr 9 12:50:54 UTC 2019


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 09 Apr 2019 12:50:54 UTC
Commit:      ccbf0df24a93421720be0f9bcbb94f2e19c17fae
             https://github.com/geany/geany/commit/ccbf0df24a93421720be0f9bcbb94f2e19c17fae

Log Message:
-----------
Avoid passing plain strings as format

Introduced in #2111, this gets caught by GCC's -Wformat-security which
is enabled as an error in our nightly builds.


Modified Paths:
--------------
    src/libmain.c

Modified: src/libmain.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1182,8 +1182,8 @@ gint main_lib(gint argc, gchar **argv)
 	{
 		const gchar *message =
 			_("IPC socket could not be created, see Help->Debug Messages for details.");
-		ui_set_statusbar(TRUE, message);
-		g_warning(message);
+		ui_set_statusbar(TRUE, "%s", message);
+		g_warning("%s", message);
 	}
 
 	/* apply all configuration options */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list