summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Pelz <pelzflorian@pelzflorian.de>2017-07-25 16:21:44 +0200
committerFlorian Pelz <pelzflorian@pelzflorian.de>2017-07-25 16:21:44 +0200
commit094ec6fa184535c20a6e85eafc1257091fa043ea (patch)
treef6973dd46ef47c5d3aede4ef2abb28c10e003269
parentd8168eef33e60d056b4636155a3f87a081eb20a1 (diff)
Escape Pango markup before displaying it in a label.
-rw-r--r--hangman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hangman.c b/hangman.c
index e394453..a2da9f0 100644
--- a/hangman.c
+++ b/hangman.c
@@ -233,8 +233,8 @@ update_label (AppData *app_data)
{
gchar *markup;
- markup = g_strdup_printf ("<tt>%s</tt>",
- app_data->game_data->word_state);
+ markup = g_markup_printf_escaped ("<tt>%s</tt>",
+ app_data->game_data->word_state);
gtk_label_set_markup (app_data->guessed, markup);
g_free (markup);
}