summaryrefslogtreecommitdiff
path: root/net-im/linpopup/files/patch-ab
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:40:31 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:40:31 +0000
commit8d61bf6afb9a90b1693cdb44241b4e8e134ce6f3 (patch)
treec5bce359cacc7f8f6a91cfa78ed0e5eaa353c370 /net-im/linpopup/files/patch-ab
parentNew Port: net/pdns (diff)
New Port: net/linpopup
X-Windows port of WinPopup PR: 22973 Submitted by: Roman Shterenzon <roman@xpert.com>
Notes
Notes: svn path=/head/; revision=35967
Diffstat (limited to 'net-im/linpopup/files/patch-ab')
-rw-r--r--net-im/linpopup/files/patch-ab21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-im/linpopup/files/patch-ab b/net-im/linpopup/files/patch-ab
new file mode 100644
index 000000000000..02d7dcd5c34e
--- /dev/null
+++ b/net-im/linpopup/files/patch-ab
@@ -0,0 +1,21 @@
+--- send.c.orig Mon Nov 20 16:07:54 2000
++++ send.c Mon Nov 20 16:18:43 2000
+@@ -161,7 +161,7 @@
+ gchar message_text[2048];
+ guint message_length;
+ char IS_TRUNCATED = FALSE;
+- char *temp_filename;
++ static char temp_filename[]="/tmp/LinPopUpXXXXXX";
+ int file_handle_temp;
+ gchar new_header[256];
+
+@@ -201,8 +201,7 @@
+
+
+ /* -- write message text to a tempory file -- */
+- temp_filename = tmpnam (NULL);
+- file_handle_temp = open (temp_filename, O_RDWR | O_CREAT | O_TRUNC, DATA_PERM);
++ if ( (file_handle_temp = mkstemp(temp_filename)) == -1 ) return;
+ write (file_handle_temp, message_text, strlen (message_text));
+ close (file_handle_temp);
+