From 30ab61ec64c3a6dc3629f399b09a30693f5ababc Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Mon, 4 Nov 2013 02:46:39 +0000 Subject: [PATCH] Removendo warnings --- security.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/security.c b/security.c index 0f66de3..9c2fc44 100644 --- a/security.c +++ b/security.c @@ -362,7 +362,7 @@ GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, - v3270_get_host(widget) + "%s",v3270_get_host(widget) ); gtk_message_dialog_format_secondary_markup( @@ -401,15 +401,9 @@ gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(dialog),gtk_image_new_from_stock(icon,GTK_ICON_SIZE_DIALOG)); if(text) - { - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), gettext(text)); - } + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), "%s", gettext(text)); else - { - gchar *str = g_strdup_printf( _( "Unexpected SSL error %ld" ),id); - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),text); - g_free(str); - } + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),_( "Unexpected SSL error %ld" ),id); } #endif // HAVE_LIBSSL -- libgit2 0.21.2