]> granicus.if.org Git - libevent/commitdiff
Glibc mkstemp requires exactly 6 Xs.
authorNick Mathewson <nickm@torproject.org>
Wed, 1 Apr 2009 16:08:34 +0000 (16:08 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 1 Apr 2009 16:08:34 +0000 (16:08 +0000)
svn:r1129

test/regress_main.c

index ad3374274ea8e388d9b6008c7ae7a94473580b1b..4d518b24b50398082d22b2cc661adda49d2e6b15 100644 (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);