hush: fix multiple redirections of the same fd (bug 227)
[oweals/busybox.git] / debianutils / mktemp.c
index de27d3023854f0536c117c6aa6f52828d6924923..0dcb1e8267c6a3b1b874a025678afb55715907cc 100644 (file)
@@ -35,7 +35,7 @@
 #include "libbb.h"
 
 int mktemp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int mktemp_main(int argc ATTRIBUTE_UNUSED, char **argv)
+int mktemp_main(int argc UNUSED_PARAM, char **argv)
 {
        const char *path;
        char *chp;
@@ -43,7 +43,7 @@ int mktemp_main(int argc ATTRIBUTE_UNUSED, char **argv)
 
        opt_complementary = "?1"; /* 1 argument max */
        opt = getopt32(argv, "dqtp:", &path);
-       chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXXXXXX");
+       chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
 
        if (opt & (4|8)) { /* -t and/or -p */
                const char *dir = getenv("TMPDIR");