Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:StefanBruens:branches:games
clanbomber2
fix-string.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-string.patch of Package clanbomber2
diff -Nur clanbomber2-0.9.1/clanbomber/Config.cpp clanbomber2-0.9.1-new/clanbomber/Config.cpp --- clanbomber2-0.9.1/clanbomber/Config.cpp 2007-10-15 15:58:16.000000000 +0200 +++ clanbomber2-0.9.1-new/clanbomber/Config.cpp 2015-11-28 11:07:58.540735967 +0100 @@ -24,7 +24,8 @@ #include "Controller.h" -#include <stdio.h> +#include <cstdio> +#include <string> CL_String Config::filename = "clanbomber.cfg"; CL_String Config::path = ""; @@ -563,7 +564,7 @@ bomber[7].set_name( "You" ); } - ofstream configfile(path+filename); + ofstream configfile(std::string(path.get_string()) + std::string(filename.get_string())); configfile << CURRENT_CONFIGFILE_VERSION << std::endl; // version diff -Nur clanbomber2-0.9.1/clanbomber/Makefile.in clanbomber2-0.9.1-new/clanbomber/Makefile.in --- clanbomber2-0.9.1/clanbomber/Makefile.in 2007-10-15 16:04:55.000000000 +0200 +++ clanbomber2-0.9.1-new/clanbomber/Makefile.in 2015-11-28 11:28:13.372825882 +0100 @@ -121,6 +121,7 @@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CPPFLAGS += "-std=c++0x" CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ diff -Nur clanbomber2-0.9.1/clanbomber/Map.cpp clanbomber2-0.9.1-new/clanbomber/Map.cpp --- clanbomber2-0.9.1/clanbomber/Map.cpp 2007-10-15 15:58:16.000000000 +0200 +++ clanbomber2-0.9.1-new/clanbomber/Map.cpp 2015-11-28 11:13:19.182759699 +0100 @@ -688,7 +688,7 @@ filename = getenv("HOME"); filename += "/.clanbomber/maps.disabled"; - ofstream map_selection_file(filename); + ofstream map_selection_file(filename.get_string()); CL_Iterator<MapEntry> map_entry_iterator(map_list); while (map_entry_iterator.next() != NULL) { if (!(map_entry_iterator()->is_enabled())) { @@ -707,7 +707,7 @@ FILE* map_selection_file; char map_name[100]; - if ((map_selection_file = fopen( filename, "r" )) != NULL) { + if ((map_selection_file = fopen( filename.get_string(), "r" )) != NULL) { while (!(feof(map_selection_file))) { fscanf( map_selection_file, "%s\n", map_name ); CL_Iterator<MapEntry> map_entry_iterator(map_list);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor