[worminator] Fix FTBFS (rhbz#1037387)

Hans de Goede jwrdegoede at fedoraproject.org
Tue Jun 17 17:00:06 UTC 2014


commit 26422d9a3b503f8eaa0a44a2392a2d8123a41d8d
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Tue Jun 17 18:59:58 2014 +0200

    Fix FTBFS (rhbz#1037387)

 worminator-3.0R2.1-format-security.patch |   12 ++++++++++++
 worminator.spec                          |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/worminator-3.0R2.1-format-security.patch b/worminator-3.0R2.1-format-security.patch
new file mode 100644
index 0000000..67355d6
--- /dev/null
+++ b/worminator-3.0R2.1-format-security.patch
@@ -0,0 +1,12 @@
+diff -up worminator-3.0R2.1/Worminator.c~ worminator-3.0R2.1/Worminator.c
+--- worminator-3.0R2.1/Worminator.c~	2014-06-17 18:28:31.000000000 +0200
++++ worminator-3.0R2.1/Worminator.c	2014-06-17 18:38:12.468303945 +0200
+@@ -2150,7 +2150,7 @@ if ((map_file = fopen(file_name, "rb"))
+ 
+ // Set current level & clear player if requested
+ current_level = new_level;
+-snprintf(current_level_mapfile_path, sizeof(current_level_mapfile_path), file_name);
++snprintf(current_level_mapfile_path, sizeof(current_level_mapfile_path), "%s", file_name);
+ if (_clear_player) {
+ 	clear_player();
+ 	player.score = 0;
diff --git a/worminator.spec b/worminator.spec
index 82f443e..6212789 100644
--- a/worminator.spec
+++ b/worminator.spec
@@ -1,6 +1,6 @@
 Name:           worminator
 Version:        3.0R2.1
-Release:        19%{?dist}
+Release:        20%{?dist}
 Summary:        Sidescrolling platform and shoot'em up action-game
 Group:          Amusements/Games
 License:        GPLv2+
@@ -9,6 +9,7 @@ Source0:        http://downloads.sourceforge.net/worminator/worminator-%{version
 Source1:        worminator.png
 Source2:        worminator.desktop
 Patch0:         worminator-3.0R2.1-speed.patch
+Patch1:         worminator-3.0R2.1-format-security.patch
 BuildRequires:  allegro-devel, desktop-file-utils
 Requires:       worminator-data >= 3.0R2.1-2, hicolor-icon-theme
 
@@ -21,6 +22,7 @@ full screen scrolling, sound and music, and much more!
 %prep
 %setup -q
 %patch0 -p1 -z .speed
+%patch1 -p1
 sed -i 's/\r//' ReadMe.txt
 
 
@@ -63,6 +65,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Tue Jun 17 2014 Hans de Goede <hdegoede at redhat.com> 3.0R2.1-20
+- Fix FTBFS (rhbz#1037387)
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0R2.1-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list