mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 08:17:42 -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
|
||||
char tmpfilename[32];
|
||||
int fd;
|
||||
strcpy(tmpfilename, "/tmp/eventtmp.XXXX");
|
||||
strcpy(tmpfilename, "/tmp/eventtmp.XXXXXX");
|
||||
fd = mkstemp(tmpfilename);
|
||||
if (fd == -1)
|
||||
return (-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user