From 93c6a7a8878715dc70ba826431c22ba9550d2f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 12 Jan 2021 18:42:34 +0100 Subject: [PATCH] fix: gui: fix the 'SetLabelText() failed' error caption on the medium-info window This is a cosmetic fix only, this bug is present since at least 0.72, but only became apparent since commit 4cebc5af, which made the error no longer silently ignored (v0.72.3). Fixes one of the reported problem of issue #19. --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 6063584..d2f34d2 100644 --- a/src/misc.c +++ b/src/misc.c @@ -508,7 +508,7 @@ void PrintCLIorLabel(void *unused, char *format, ...) while(*c == '\n') /* Remove trailing newlines */ *c-- = 0; - SetLabelText(label, tmp); /* converts to utf8 by itself */ + SetLabelText(label, "%s", tmp); /* converts to utf8 by itself */ g_free(tmp); }