[trackballs] - Fix crash when exiting game (#667236)

Hans de Goede jwrdegoede at fedoraproject.org
Tue Jan 25 21:55:21 UTC 2011


commit 803ca5b308a04e8cd3201c118afd660465b641c5
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Tue Jan 25 22:58:11 2011 +0100

    - Fix crash when exiting game (#667236)

 trackballs-1.1.4-rh667236.patch |   12 ++++++++++++
 trackballs.spec                 |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/trackballs-1.1.4-rh667236.patch b/trackballs-1.1.4-rh667236.patch
new file mode 100644
index 0000000..cc6077d
--- /dev/null
+++ b/trackballs-1.1.4-rh667236.patch
@@ -0,0 +1,12 @@
+diff -up trackballs-1.1.4/src/enterHighScoreMode.cc~ trackballs-1.1.4/src/enterHighScoreMode.cc
+--- trackballs-1.1.4/src/enterHighScoreMode.cc~	2007-04-07 15:17:17.000000000 +0200
++++ trackballs-1.1.4/src/enterHighScoreMode.cc	2011-01-25 22:46:23.591215695 +0100
+@@ -112,7 +112,7 @@ void EnterHighScoreMode::activated() {
+ 	if(!background) { printf("Error: failed to load %s\n",str); exit(0); }  
+   }
+ 
+-  snprintf(name,sizeof(str),"%s",Game::current->gamer->name);
++  snprintf(name, sizeof(name), "%s", Game::current->gamer->name);
+   if(!HighScore::highScore->isHighScore(Game::current->player1->score)) 
+ 	GameMode::activate(MenuMode::menuMode);
+ 
diff --git a/trackballs.spec b/trackballs.spec
index b0dafe7..74cf9f9 100644
--- a/trackballs.spec
+++ b/trackballs.spec
@@ -1,6 +1,6 @@
 Name:           trackballs
 Version:        1.1.4
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Steer a marble ball through a labyrinth
 Group:          Amusements/Games
 License:        GPLv2+
@@ -10,6 +10,7 @@ Source1:        %{name}.desktop
 Patch0:         trackballs-1.1.4-destdir.patch
 Patch1:         trackballs-1.1.4-black-vertices-fix.patch
 Patch2:         trackballs-1.1.4-rh555877.patch
+Patch3:         trackballs-1.1.4-rh667236.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  guile-devel libGLU-devel zlib-devel desktop-file-utils
 BuildRequires:  SDL_ttf-devel SDL_mixer-devel SDL_image-devel
@@ -26,6 +27,7 @@ quality soundeffects and background music.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 iconv -f ISO-8859-1 -t UTF8 share/%{name}.6 > share/%{name}.6.tmp
 mv share/%{name}.6.tmp share/%{name}.6
 # the install script does a chgrp to 'games', this doesn't work while
@@ -83,6 +85,9 @@ fi
 
 
 %changelog
+* Tue Jan 25 2011 Hans de Goede <hdegoede at redhat.com> 1.1.4-13
+- Fix crash when exiting game (#667236)
+
 * Mon Feb 22 2010 Hans de Goede <hdegoede at redhat.com> 1.1.4-12
 - Fix FTBFS (automake rerunning due to patches, #564762)
 


More information about the scm-commits mailing list