Commit 30ab61ec64c3a6dc3629f399b09a30693f5ababc
1 parent
50c4dba4
Exists in
master
and in
1 other branch
Removendo warnings
Showing
1 changed file
with
3 additions
and
9 deletions
Show diff stats
security.c
@@ -362,7 +362,7 @@ | @@ -362,7 +362,7 @@ | ||
362 | GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, | 362 | GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, |
363 | GTK_MESSAGE_INFO, | 363 | GTK_MESSAGE_INFO, |
364 | GTK_BUTTONS_CLOSE, | 364 | GTK_BUTTONS_CLOSE, |
365 | - v3270_get_host(widget) | 365 | + "%s",v3270_get_host(widget) |
366 | ); | 366 | ); |
367 | 367 | ||
368 | gtk_message_dialog_format_secondary_markup( | 368 | gtk_message_dialog_format_secondary_markup( |
@@ -401,15 +401,9 @@ | @@ -401,15 +401,9 @@ | ||
401 | gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(dialog),gtk_image_new_from_stock(icon,GTK_ICON_SIZE_DIALOG)); | 401 | gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(dialog),gtk_image_new_from_stock(icon,GTK_ICON_SIZE_DIALOG)); |
402 | 402 | ||
403 | if(text) | 403 | if(text) |
404 | - { | ||
405 | - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), gettext(text)); | ||
406 | - } | 404 | + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), "%s", gettext(text)); |
407 | else | 405 | else |
408 | - { | ||
409 | - gchar *str = g_strdup_printf( _( "Unexpected SSL error <b>%ld</b>" ),id); | ||
410 | - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),text); | ||
411 | - g_free(str); | ||
412 | - } | 406 | + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),_( "Unexpected SSL error <b>%ld</b>" ),id); |
413 | 407 | ||
414 | } | 408 | } |
415 | #endif // HAVE_LIBSSL | 409 | #endif // HAVE_LIBSSL |