[abe] 27/30: Add format-security.patch and fix the FTBFS
Markus Koschany
apo at moszumanska.debian.org
Sat Jun 11 10:41:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository abe.
commit c9ff49ffcff58439096e8f64208177a2891f84f0
Author: Markus Koschany <apo at debian.org>
Date: Sat Jun 11 11:54:35 2016 +0200
Add format-security.patch and fix the FTBFS
---
debian/patches/format-security.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 25 insertions(+)
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..b2e6963
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,24 @@
+From: Markus Koschany <apo at debian.org>
+Date: Sat, 11 Jun 2016 11:53:59 +0200
+Subject: format security
+
+---
+ src/Game.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Game.c b/src/Game.c
+index 74002c7..8152309 100644
+--- a/src/Game.c
++++ b/src/Game.c
+@@ -19,9 +19,9 @@ path_sprintf(char *path, char *formatted_name, int version)
+ len = strlen(path);
+
+ if(1 == version) {
+- sprintf(path + len, formatted_name);
++ sprintf(path + len, "%s", formatted_name);
+ } else {
+- sprintf(path + len, formatted_name, version);
++ sprintf(path + len, "%s", formatted_name, version);
+ }
+
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 0c3fdbe..eef929a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
03-truncate-menu.patch
04-default-reso.patch
05-cheat.patch
+format-security.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/abe.git
More information about the Pkg-games-commits
mailing list