summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-12-29 23:41:20 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-12-30 00:04:57 +0100
commitae0853c449d7c2578c654a54b31877c1ba8d0029 (patch)
tree975abd9823abcdb303714f062760e4b810448be9 /games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch
parentmedia-libs/libvisio: Drop 0.1.5 (diff)
downloadgentoo-ae0853c449d7c2578c654a54b31877c1ba8d0029.tar.gz
gentoo-ae0853c449d7c2578c654a54b31877c1ba8d0029.tar.bz2
gentoo-ae0853c449d7c2578c654a54b31877c1ba8d0029.zip
profiles: Remove last-rited kdelibs4/qt4-rdeps
Closes: https://bugs.gentoo.org/634138 Closes: https://bugs.gentoo.org/634324
Diffstat (limited to 'games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch')
-rw-r--r--games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch b/games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch
deleted file mode 100644
index 0d2d3f45b862..000000000000
--- a/games-mud/kmuddy/files/kmuddy-1.0.1-tempnam.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/plugins/scripting/cunixsocket.cpp
-+++ b/plugins/scripting/cunixsocket.cpp
-@@ -40,12 +40,21 @@
- varlist = 0;
- connected = false;
-
-- //first of all, we need a file name
-- char *fname = tempnam ("/tmp", "km");
-- if (fname != 0) //only if it didn't fail
-+ //22 = strlen(form) + strlen(/sock) + 1
-+ char form[]="/tmp/kmuddyXXXXXX", *dirname, sockname[22];
-+ dirname = mkdtemp(form);
-+
-+ if (dirname != NULL) //only if it didn't fail
- {
-- name = fname;
-- free (fname);
-+
-+ strcpy(sockname, dirname);
-+ strcat(dirname, "/sock");
-+
-+ name = dirname;
-+ free (form);
-+ free (dirname);
-+ free (sockname);
-+
- //now that we have the name, we create a socket and set some parameters
- id = socket (PF_UNIX, SOCK_STREAM, 0);
- sa.sun_family = AF_UNIX;