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.
This commit is contained in:
Stéphane Lesimple
2021-01-12 18:42:34 +01:00
parent 53ddb9a51b
commit 93c6a7a887

View File

@@ -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);
}