summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Pelz <pelzflorian@pelzflorian.de>2017-07-25 16:25:23 +0200
committerFlorian Pelz <pelzflorian@pelzflorian.de>2017-07-25 16:25:23 +0200
commitf2fb450d34b8fd3b47420315547a61f7f7a6cd71 (patch)
tree5a241496e1d3f99c664f0d8f4d6026a98455d9c0
parentcd41a25206fcb2136134fbe2f4373f5e5f0af2d1 (diff)
Escape Pango markup in word list for hangman example.
-rw-r--r--bin/hangman/hangman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hangman/hangman.c b/bin/hangman/hangman.c
index 7fd92fc..3911a81 100644
--- a/bin/hangman/hangman.c
+++ b/bin/hangman/hangman.c
@@ -150,8 +150,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);
}