diff options
author | Klaatu <klaatu@straightedgelinux.com> | 2014-12-20 06:59:36 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-20 06:59:36 +0700 |
commit | b4242367eef6f3d3c9fc0831a6695c9844ee257f (patch) | |
tree | 6f4be039739f5591cb99e19f172592d2b73a7cba /games/rejoystick/rejoystick.patch | |
parent | ab30fdd2daf618f5fa9c1c1e20bb0b5066da8720 (diff) |
games/rejoystick: Patched for init SDL.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/rejoystick/rejoystick.patch')
-rw-r--r-- | games/rejoystick/rejoystick.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/games/rejoystick/rejoystick.patch b/games/rejoystick/rejoystick.patch new file mode 100644 index 0000000000000..a163936aeb9b1 --- /dev/null +++ b/games/rejoystick/rejoystick.patch @@ -0,0 +1,19 @@ +--- rejoystick-0.8.1/src/main.c.orig 2014-12-20 06:55:37.951753670 +0700 ++++ rejoystick-0.8.1/src/main.c 2014-12-20 06:56:23.666092712 +0700 +@@ -137,13 +137,9 @@ + + pthread_t sdl_thread; + +- char* home; +- char* keyfile; +- +- home = (char*)getenv("HOME"); +- keyfile = KEYFILE; +- filename = strcat(home, keyfile); +- ++ const char * home = getenv("HOME"); ++ filename = malloc(strlen(home) + strlen(KEYFILE) + 1); ++ sprintf(filename, "%s%s", home, KEYFILE); + global_argv = argv; + + |