Add stk-bufferoverflow to fix build on Factory
OBS-URL: https://build.opensuse.org/package/show/games/supertuxkart?expand=0&rev=20
This commit is contained in:
parent
6a87cff90a
commit
df34c09845
21
stk-bufferoverflow.patch
Normal file
21
stk-bufferoverflow.patch
Normal file
@ -0,0 +1,21 @@
|
||||
Index: supertuxkart-0.6.2/src/gui/display_res_confirm.hpp
|
||||
===================================================================
|
||||
--- supertuxkart-0.6.2.orig/src/gui/display_res_confirm.hpp
|
||||
+++ supertuxkart-0.6.2/src/gui/display_res_confirm.hpp
|
||||
@@ -21,6 +21,7 @@
|
||||
#define HEADER_DISPLAY_RES_CONFIRM_H
|
||||
|
||||
#include "base_gui.hpp"
|
||||
+#include "utils/translation.hpp"
|
||||
|
||||
#include <SDL/SDL.h>
|
||||
|
||||
@@ -35,7 +36,7 @@ public:
|
||||
void handle(GameAction ga, int value);
|
||||
|
||||
private:
|
||||
- char m_count[60];
|
||||
+ char m_count[MAX_MESSAGE_LENGTH];
|
||||
int m_counter;
|
||||
const bool FROM_WINDOW;
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 12 20:54:25 UTC 2010 - dimstar@opensuse.org
|
||||
|
||||
- Add stk-bufferoverflow.patch to fix a bufferoverflow.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 3 17:36:19 CEST 2009 - dimstar@opensuse.org
|
||||
|
||||
|
@ -16,6 +16,8 @@ Summary: An enhanced version of TuxKart, a kart racing game
|
||||
Source: http://download.berlios.de/supertuxkart/%{name}-%{version}-src.tar.bz2
|
||||
Patch0: stk-asneeded.patch
|
||||
Patch1: stk-am111.patch
|
||||
# PATCH-FIX-UPSTREAM stk-bufferoverflow.patch dimstar@opensuse.org -- Fix bufferoverflow detected by gcc 4.5
|
||||
Patch2: stk-bufferoverflow.patch
|
||||
URL: http://supertuxkart.berlios.de/
|
||||
BuildRequires: Mesa-devel gcc-c++ plib-devel update-desktop-files SDL-devel freealut-devel openal-devel libmikmod-devel tcsh freeglut-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
@ -30,6 +32,7 @@ friends.
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
chmod ugo-x AUTHORS COPYING NEWS README TODO
|
||||
|
||||
%build
|
||||
|
Loading…
x
Reference in New Issue
Block a user