summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}