diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-02 00:21:18 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-02 00:21:18 +0000 |
commit | 21c07ea0182ba3f51a05a4b8b8c9840a807a7576 (patch) | |
tree | 3c612aa062ab4b2efd3dd1a00e7a5827bb7ade60 /usr.bin/patch | |
parent | fca075bce30674cbd0b5e369662204aa742741ce (diff) |
bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)
Diffstat (limited to 'usr.bin/patch')
-rw-r--r-- | usr.bin/patch/patch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index 1cac5ac5c98..58c924e9a8f 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.16 2003/04/05 17:17:53 deraadt Exp $ */ +/* $OpenBSD: patch.c,v 1.17 2003/07/02 00:21:16 avsm Exp $ */ /* patch - a program to apply diffs to original files * @@ -27,7 +27,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: patch.c,v 1.16 2003/04/05 17:17:53 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: patch.c,v 1.17 2003/07/02 00:21:16 avsm Exp $"; #endif /* not lint */ #include "INTERN.h" @@ -102,25 +102,25 @@ char **argv; tmpdir = "/tmp"; } - if (asprintf(&TMPOUTNAME, "%s/patchoXXXXXX", tmpdir) == -1) + if (asprintf(&TMPOUTNAME, "%s/patchoXXXXXXXXXX", tmpdir) == -1) fatal1("cannot allocate memory"); if ((i = mkstemp(TMPOUTNAME)) < 0) pfatal2("can't create %s", TMPOUTNAME); Close(i); - if (asprintf(&TMPINNAME, "%s/patchiXXXXXX", tmpdir) == -1) + if (asprintf(&TMPINNAME, "%s/patchiXXXXXXXXXX", tmpdir) == -1) fatal1("cannot allocate memory"); if ((i = mkstemp(TMPINNAME)) < 0) pfatal2("can't create %s", TMPINNAME); Close(i); - if (asprintf(&TMPREJNAME, "%s/patchrXXXXXX", tmpdir) == -1) + if (asprintf(&TMPREJNAME, "%s/patchrXXXXXXXXXX", tmpdir) == -1) fatal1("cannot allocate memory"); if ((i = mkstemp(TMPREJNAME)) < 0) pfatal2("can't create %s", TMPREJNAME); Close(i); - if (asprintf(&TMPPATNAME, "%s/patchpXXXXXX", tmpdir) == -1) + if (asprintf(&TMPPATNAME, "%s/patchpXXXXXXXXXX", tmpdir) == -1) fatal1("cannot allocate memory"); if ((i = mkstemp(TMPPATNAME)) < 0) pfatal2("can't create %s", TMPPATNAME); |