]> git.pld-linux.org Git - packages/blt.git/blob - blt-excl.patch
- added 64 bit patch, fixed install
[packages/blt.git] / blt-excl.patch
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  
20 -    mkstemp(fileName);
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.047997 seconds and 3 git commands to generate.