diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
commit | 0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch) | |
tree | 07815070629c7c11000a7f51ceb8ccbccb49a809 /games-arcade/abe/files | |
parent | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/abe/files')
-rw-r--r-- | games-arcade/abe/files/abe-1.1-doublefree.patch | 11 | ||||
-rw-r--r-- | games-arcade/abe/files/abe-1.1-format-security.patch | 87 | ||||
-rw-r--r-- | games-arcade/abe/files/abe-1.1-format.patch | 11 | ||||
-rw-r--r-- | games-arcade/abe/files/abe-1.1-settings.patch | 12 |
4 files changed, 0 insertions, 121 deletions
diff --git a/games-arcade/abe/files/abe-1.1-doublefree.patch b/games-arcade/abe/files/abe-1.1-doublefree.patch deleted file mode 100644 index ce7389d97100..000000000000 --- a/games-arcade/abe/files/abe-1.1-doublefree.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/Main.c.orig 2005-03-05 09:20:04.000000000 -0700 -+++ b/src/Main.c 2011-03-14 10:08:31.846413904 -0600 -@@ -35,8 +35,6 @@ - for(i = 0; modes[i]; ++i) - printf("\t%d x %d\n", modes[i]->w, modes[i]->h); - } -- -- free(modes); - } - - void diff --git a/games-arcade/abe/files/abe-1.1-format-security.patch b/games-arcade/abe/files/abe-1.1-format-security.patch deleted file mode 100644 index ad88b4b60486..000000000000 --- a/games-arcade/abe/files/abe-1.1-format-security.patch +++ /dev/null @@ -1,87 +0,0 @@ ---- ./src/Game.c.orig 2005-03-05 09:20:04.000000000 -0700 -+++ ./src/Game.c 2013-11-20 12:30:00.000000000 -0700 -@@ -6,21 +6,14 @@ Game game; - - // path_sprintf should not be used by other .c files, as it does not fit for them. - static void --path_sprintf(char *path, char *formatted_name, int version) -+path_sprintf(char *path, const char *name, int version) - { -- -- int len; -- -- printf("path_sprintf (%p, %s, %d)\n", path, formatted_name, version); -- -- strcpy(path, getSaveGameDir()); -- -- len = strlen(path); -- - if(1 == version) { -- sprintf(path + len, formatted_name); -+ printf("path_sprintf (%p, %s.dat, %d)\n", path, name, version); -+ sprintf(path, "%s%s.dat", getSaveGameDir(), name); - } else { -- sprintf(path + len, formatted_name, version); -+ printf("path_sprintf (%p, %s%d.dat, %d)\n", path, name, version, version); -+ sprintf(path, "%s%s%d.dat", getSaveGameDir(), name, version); - } - - } -@@ -30,14 +23,14 @@ deleteSavedGame() - { - char path[PATH_SIZE]; - // version 2 -- path_sprintf(path, "save%d.dat", GAME_VERSION); -+ path_sprintf(path, "save", GAME_VERSION); - remove(path); -- path_sprintf(path, "savedmap%d.dat", GAME_VERSION); -+ path_sprintf(path, "savedmap", GAME_VERSION); - remove(path); - // version 1 -- path_sprintf(path, "save.dat", 1); -+ path_sprintf(path, "save", 1); - remove(path); -- path_sprintf(path, "savedmap.dat", 1); -+ path_sprintf(path, "savedmap", 1); - remove(path); - } - -@@ -51,7 +44,7 @@ saveGame() - - mkshuae(); - -- path_sprintf(path, "save%d.dat", GAME_VERSION); -+ path_sprintf(path, "save", GAME_VERSION); - - if(!(fp = fopen(path, "wb"))) { - err = strerror(errno); -@@ -79,7 +72,7 @@ saveGame() - SDL_RWclose(rwop); - - // save the map -- path_sprintf(path, "savedmap%d.dat", GAME_VERSION); -+ path_sprintf(path, "savedmap", GAME_VERSION); - saveMapPath(path); - } - -@@ -96,7 +89,7 @@ loadGame() - version = (int) GAME_VERSION; - - // load the map -- path_sprintf(path, "savedmap%d.dat", GAME_VERSION); -+ path_sprintf(path, "savedmap", GAME_VERSION); - if(!loadMapPath(path, 0)) { - // if can't find saved map load static map - fprintf(stderr, -@@ -112,9 +105,9 @@ loadGame() - // try to find a saved game of any version - while(version > 0) { - if(version > 1) { -- path_sprintf(path, "save%d.dat", version); -+ path_sprintf(path, "save", version); - } else { // By Pedro: version==1 -- path_sprintf(path, "save.dat", version); -+ path_sprintf(path, "save", version); - } - fprintf(stderr, "Trying to load saved game: %s\n", path); - fflush(stderr); diff --git a/games-arcade/abe/files/abe-1.1-format.patch b/games-arcade/abe/files/abe-1.1-format.patch deleted file mode 100644 index 529534745712..000000000000 --- a/games-arcade/abe/files/abe-1.1-format.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/MapIO.c.orig 2005-03-05 09:20:04.000000000 -0700 -+++ b/src/MapIO.c 2011-03-14 10:15:33.166949366 -0600 -@@ -93,7 +93,7 @@ - // compression step 1: read compressed data from disk - // FIXME: what would be nicer is to only allocate as much mem as used on disk. - size = LEVEL_COUNT * map.w * map.h; -- printf("size %u\n", size); -+ printf("size %zu\n", size); - fflush(stdout); - if(!(read_buff = (Uint16 *) malloc(sizeof(Uint16) * size))) { - fprintf(stderr, "Out of memory on map read."); diff --git a/games-arcade/abe/files/abe-1.1-settings.patch b/games-arcade/abe/files/abe-1.1-settings.patch deleted file mode 100644 index ea5809f7386a..000000000000 --- a/games-arcade/abe/files/abe-1.1-settings.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur --exclude '*.swp' abe-1.1/src/Menu.c abe-1.1.new/src/Menu.c ---- abe-1.1/src/Menu.c 2005-03-05 08:20:04.000000000 -0800 -+++ abe-1.1.new/src/Menu.c 2006-04-02 15:04:37.000000000 -0700 -@@ -116,7 +116,7 @@ - if(n == SOUND_ENABLED || n == MUSIC_ENABLED) - return sound_loaded; - else -- return 0; -+ return 1; - } - - void |