From: Kaj-Michael Lang Date: Fri, 25 Jan 2008 08:16:01 +0000 (+0200) Subject: Use g_markup_printf_escaped X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37ceeda0c43dd03531940af8d3ed16a6921ce4ee;p=mapper Use g_markup_printf_escaped --- diff --git a/src/poi-gui.c b/src/poi-gui.c index fd48425..17e11cd 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -722,7 +722,7 @@ if (!p) ls=strlen(p->label); -phtml=g_strdup_printf( +phtml=g_markup_printf_escaped( "" "" "%s%s
" diff --git a/src/utils.h b/src/utils.h index 6bfaa1b..a1e1467 100644 --- a/src/utils.h +++ b/src/utils.h @@ -132,7 +132,7 @@ if (_http_proxy_host) { \ #ifdef WITH_HILDON #define MACRO_BANNER_SHOW_INFO(A, S) { \ - gchar *my_macro_buffer = g_strdup_printf("%s", \ + gchar *my_macro_buffer = g_markup_printf_escaped("%s", \ INFO_FONT_TEXT[_info_font_size], (S)); \ hildon_banner_show_information_with_markup(A, NULL, my_macro_buffer); \ g_free(my_macro_buffer); \