summaryrefslogtreecommitdiff
path: root/games-arcade/njam/files/njam-1.25-format-security.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/njam/files/njam-1.25-format-security.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/njam/files/njam-1.25-format-security.patch')
-rw-r--r--games-arcade/njam/files/njam-1.25-format-security.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/games-arcade/njam/files/njam-1.25-format-security.patch b/games-arcade/njam/files/njam-1.25-format-security.patch
new file mode 100644
index 000000000000..66c8b17085ba
--- /dev/null
+++ b/games-arcade/njam/files/njam-1.25-format-security.patch
@@ -0,0 +1,13 @@
+diff -up njam-1.25-src/src/njamgame.cpp~ njam-1.25-src/src/njamgame.cpp
+--- njam-1.25-src/src/njamgame.cpp~ 2005-12-13 12:56:42.000000000 +0100
++++ njam-1.25-src/src/njamgame.cpp 2014-06-14 11:54:12.320854217 +0200
+@@ -227,8 +227,7 @@ void NjamEngine::StartGame(GameType Gt)
+ SDL_Surface *temp = IMG_Load(filename);
+ if (!temp)
+ {
+- printf("Loading file: %s", filename);
+- printf(SDL_GetError());
++ printf("Error loading file %s: %s\n", filename, SDL_GetError());
+ return;
+ }
+