1
0
Fork 0

Specify format string literals for all printw() calls

Closes: #995597
This commit is contained in:
Stephen Kitt 2021-10-11 14:33:14 +02:00
parent 3de70963a4
commit a1c5ab9de5
No known key found for this signature in database
GPG Key ID: 80D302F5886D839C
3 changed files with 33 additions and 0 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
bsdgames (2.17-29) unstable; urgency=medium
* Team upload.
* Specify format string literals for all printw() calls.
Closes: #995597.
-- Stephen Kitt <skitt@debian.org> Mon, 11 Oct 2021 14:23:15 +0200
bsdgames (2.17-28) unstable; urgency=medium
* hack: Fix segv when 'i' (inventory) done after load from saved game.

View File

@ -0,0 +1,24 @@
From: Stephen Kitt <skitt@debian.org>
Date: Mon, 11 Oct 2021 14:30:00 +0200
Subject: Add missing format strings
--- a/canfield/canfield/canfield.c
+++ b/canfield/canfield/canfield.c
@@ -1647,7 +1647,7 @@
return;
clear();
for (cp = basicinstructions; *cp != 0; cp++)
- printw(*cp);
+ printw("%s", *cp);
refresh();
getch();
clear();
@@ -1660,7 +1660,7 @@
return;
clear();
for (cp = bettinginstructions; *cp != 0; cp++)
- printw(*cp);
+ printw("%s", *cp);
refresh();
getch();
}

View File

@ -15,3 +15,4 @@
0015-primes-Update-to-NetBSD-CVS-2018-02-03.patch
0016-Better-explanation-how-to-read-the-documentation.patch
0017-hack-Fix-segv-when-i-inventory-done-after-load-from-.patch
0018-Add-missing-format-strings.patch