1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Subject: Fix build with -Werror=format-security
From: Ricardo Mones <mones@debian.org>
Bug-Debian: https://bugs.debian.org/997132
Forwarded: https://sourceforge.net/p/aewan/bugs/13/
Last-Update: 2021-10-24
--- a/aewan.c
+++ b/aewan.c
@@ -139,7 +139,7 @@ void paint_screen() {
static char *msg = "[Document contains no layers; press F1 for menu]";
kurses_move((scr_width - strlen(msg)) / 2, scr_height / 2);
kurses_color(7, 0);
- printw(msg);
+ printw("%s", msg);
refresh();
return;
}
|