Skip to content

Commit

Permalink
Don't pass prebuilt strings directly as printf-format expected arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Oct 12, 2014
1 parent c8fc1d0 commit b0d261a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spellcheck/src/speller.c
Expand Up @@ -311,11 +311,11 @@ static void broker_init_failed(void)
const gchar *msg = g_strdup_printf(
_("The Enchant library couldn't be initialized (%s)."),
(err != NULL) ? err : _("unknown error (maybe the chosen language is not available)"));
msgwin_status_add(msg);

msgwin_status_add("%s", msg);
if (main_is_realized())
/* show dialog only after Geany has been loaded already, i.e. not while starting up */
dialogs_show_msgbox(GTK_MESSAGE_ERROR, msg);
dialogs_show_msgbox(GTK_MESSAGE_ERROR, "%s", msg);
}


Expand Down

0 comments on commit b0d261a

Please sign in to comment.