diff --git a/src/lib3270/telnet.c b/src/lib3270/telnet.c index 50da28f..a34cc50 100644 --- a/src/lib3270/telnet.c +++ b/src/lib3270/telnet.c @@ -849,7 +849,7 @@ static int ssl_negotiate(H3270 *hSession) trace_dsn(hSession,"SSL_connect failed: %s %s\n", ERR_lib_error_string(hSession->ssl_error), ERR_reason_error_string(hSession->ssl_error)); - popup_an_error(hSession,_( ERR_reason_error_string(hSession->ssl_error) )); + popup_an_error(hSession,"%s",_( ERR_reason_error_string(hSession->ssl_error) )); } } diff --git a/src/lib3270/toggles.c b/src/lib3270/toggles.c index c4ed318..f2d7622 100644 --- a/src/lib3270/toggles.c +++ b/src/lib3270/toggles.c @@ -37,13 +37,14 @@ */ #include +#include +#include + #include #include "toggle.h" #include "globals.h" -//#include "appres.h" #include "ansic.h" -//#include "actionsc.h" #include "ctlrc.h" #include "popupsc.h" #include "screenc.h" diff --git a/src/pw3270/v3270/security.c b/src/pw3270/v3270/security.c index 0f66de3..9c2fc44 100644 --- a/src/pw3270/v3270/security.c +++ b/src/pw3270/v3270/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