File: format-security.patch

package info (click to toggle)
aewan 1.0.01-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 816 kB
  • sloc: ansic: 4,439; python: 122; makefile: 67; sh: 14
file content (17 lines) | stat: -rw-r--r-- 534 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: 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;
    }