Glibc mkstemp requires exactly 6 Xs.

svn:r1129
This commit is contained in:
Nick Mathewson 2009-04-01 16:08:34 +00:00
parent 994e85781c
commit 0afb1f7ffb

View File

@ -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);