diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-31 21:16:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-31 21:16:47 +0000 |
commit | e3b32344909710c4395601a6a5f30c41a1cbf324 (patch) | |
tree | 4f8dd74c55fa74b3570b0c68a73c618ef3b962c9 /games-action/orbital-eunuchs-sniper/files | |
parent | Version bumped (diff) | |
download | gentoo-2-e3b32344909710c4395601a6a5f30c41a1cbf324.tar.gz gentoo-2-e3b32344909710c4395601a6a5f30c41a1cbf324.tar.bz2 gentoo-2-e3b32344909710c4395601a6a5f30c41a1cbf324.zip |
a little FHS lovin
Diffstat (limited to 'games-action/orbital-eunuchs-sniper/files')
-rw-r--r-- | games-action/orbital-eunuchs-sniper/files/1.29-gentoo-paths.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games-action/orbital-eunuchs-sniper/files/1.29-gentoo-paths.patch b/games-action/orbital-eunuchs-sniper/files/1.29-gentoo-paths.patch new file mode 100644 index 000000000000..ac62ac21c5d3 --- /dev/null +++ b/games-action/orbital-eunuchs-sniper/files/1.29-gentoo-paths.patch @@ -0,0 +1,17 @@ +diff -ur orbital_eunuchs_sniper-1.29.orig/src/snipe2d.cpp orbital_eunuchs_sniper-1.29/src/snipe2d.cpp +--- orbital_eunuchs_sniper-1.29.orig/src/snipe2d.cpp 2003-12-31 16:05:07.079304568 -0500 ++++ orbital_eunuchs_sniper-1.29/src/snipe2d.cpp 2003-12-31 16:06:52.962207920 -0500 +@@ -1632,10 +1632,11 @@ + + srand(SDL_GetTicks()); + +- Game.mediaPath = (char*)calloc(strlen(argv[0]), sizeof(char)); ++ Game.mediaPath = (char*)calloc(strlen("GENTOO_DIR\0")+1, sizeof(char)); + // invocation = (char*)malloc(strlen(argv[0]) + 1); memcpy(invocation, argv[0], strlen(argv[0])); + invocation = strdup(argv[0]); +- sprintf(Game.mediaPath, "%s", dirname(invocation)); ++ sprintf(Game.mediaPath, "GENTOO_DIR\0"); ++ chdir(Game.mediaPath); + free(invocation); + invocation = argv[0]; + |