]> git.pld-linux.org Git - packages/blt.git/blame - blt-excl.patch
- rel 3; fix build with tcl/tk 8.6
[packages/blt.git] / blt-excl.patch
CommitLineData
c1ab947e 1--- blt2.4u/src/bltUnixPipe.c.excl Tue Feb 29 15:48:00 2000
2+++ blt2.4u/src/bltUnixPipe.c Wed Dec 6 17:58:43 2000
3@@ -27,6 +27,7 @@
4
5 #include "bltInt.h"
6 #include <fcntl.h>
7+#include <limits.h>
8 #include <signal.h>
9
10 #include "bltWait.h"
11@@ -118,12 +119,12 @@
12 CreateTempFile(contents)
13 char *contents; /* String to write into temp file, or NULL. */
14 {
15- char fileName[L_tmpnam];
16+ char fileName[LINE_MAX];
17 int fd;
18 size_t length = (contents == NULL) ? 0 : strlen(contents);
19
d5588c95 20- mkstemp(fileName);
c1ab947e 21- fd = OpenFile(fileName, O_RDWR | O_CREAT | O_TRUNC);
22+ strcpy(fileName, "/tmp/bltXXXXXX");
23+ fd = mkstemp(fileName);
24 unlink(fileName);
25
26 if ((fd >= 0) && (length > 0)) {
This page took 0.077235 seconds and 4 git commands to generate.