fix warnings when compiled against newer versions of glibc.
[xfstests-dev.git] / src / alloc.c
index dce16d356479b660e0ee27f2c2821c5e2130efb6..72830a7072d0cd3a216e741ee6f99f28a2bd849d 100644 (file)
@@ -166,7 +166,7 @@ main(int argc, char **argv)
        if (!filename) {
                static char     tmpfile[] = "allocXXXXXX";
 
-               mktemp(tmpfile);
+               mkstemp(tmpfile);
                filename = malloc(strlen(tmpfile) + strlen(dirname) + 2);
                sprintf(filename, "%s/%s", dirname, tmpfile);
                unlinkit = 1;