File: format-security.patch

package info (click to toggle)
aewan 1.0.01-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 796 kB
  • sloc: ansic: 4,438; python: 122; makefile: 67; sh: 14
file content (17 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
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: no
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;
    }