diff --git a/bzflag-2.0.10-array-subscript.patch b/bzflag-2.0.10-array-subscript.patch new file mode 100644 index 0000000..1a2a089 --- /dev/null +++ b/bzflag-2.0.10-array-subscript.patch @@ -0,0 +1,17 @@ +--- src/bzflag/ServerStartMenu.cxx ++++ src/bzflag/ServerStartMenu.cxx +@@ -319,14 +319,6 @@ + + void ServerStartMenu::setSettings(const char* _settings) + { +- // FIXME -- temporary to automatically upgrade old configurations +- if (strlen(_settings) == 14) { +- strcpy(settings, _settings); +- settings[12] = settings[13]; +- settings[13] = settings[14]; +- return; +- } +- + if (strlen(_settings) != strlen(settings)) return; + strcpy(settings, _settings); + } diff --git a/bzflag.spec b/bzflag.spec index 5937498..ed9533d 100644 --- a/bzflag.spec +++ b/bzflag.spec @@ -1,5 +1,5 @@ # -# spec file for package bzflag (Version 2.0.16) +# spec file for package bzflag (Version 2.0.12) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,10 +15,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: bzflag -BuildRequires: bc curl-devel fdupes freeglut-devel gcc-c++ libSDL-devel libcares-devel libdrm-devel ncurses-devel update-desktop-files +BuildRequires: bc curl-devel freeglut-devel gcc-c++ libcares-devel libdrm-devel ncurses-devel update-desktop-files fdupes libSDL-devel License: GPLv2+ Group: Amusements/Games/3D/Shoot Version: 2.0.16