mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-18 08:49:57 -04:00
Glibc mkstemp requires exactly 6 Xs.
svn:r1129
This commit is contained in:
parent
994e85781c
commit
0afb1f7ffb
@ -96,7 +96,7 @@ regress_make_tmpfile(const void *data, size_t datalen)
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
char tmpfilename[32];
|
char tmpfilename[32];
|
||||||
int fd;
|
int fd;
|
||||||
strcpy(tmpfilename, "/tmp/eventtmp.XXXX");
|
strcpy(tmpfilename, "/tmp/eventtmp.XXXXXX");
|
||||||
fd = mkstemp(tmpfilename);
|
fd = mkstemp(tmpfilename);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user