From 5cf6ee1bc6d0b99b01891bc455a657bf022a72b0 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 6 May 2020 13:46:40 +0200 Subject: [PATCH] Fix `/correction` char display https://github.com/profanity-im/profanity/commit/1f8b1eb740391941e79e1004ad041f8178a2b674 made it possible to have utf8 chars as correction chars. So since then prefs_get_correction_char() doesn't return a regular char but a char*. Seems like there was an oversight that we need to use %s then. --- src/ui/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/console.c b/src/ui/console.c index 829870d9..58b33204 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2046,7 +2046,7 @@ cons_correction_setting(void) } char *cc = prefs_get_correction_char(); - cons_show("LMC indication char (/correction char) : %c", cc); + cons_show("LMC indication char (/correction char) : %s", cc); free(cc); }