diff options
author | 2003-07-02 00:21:16 +0000 | |
---|---|---|
committer | 2003-07-02 00:21:16 +0000 | |
commit | 4b066b94d066f6f86bbaf85abf2f61c8d07290ea (patch) | |
tree | 1581d7ab14653c44eb8efb443598e029d6cad485 /usr.bin/file/compress.c | |
parent | comitted->committed (diff) | |
download | wireguard-openbsd-4b066b94d066f6f86bbaf85abf2f61c8d07290ea.tar.xz wireguard-openbsd-4b066b94d066f6f86bbaf85abf2f61c8d07290ea.zip |
bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)
Diffstat (limited to 'usr.bin/file/compress.c')
-rw-r--r-- | usr.bin/file/compress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/compress.c b/usr.bin/file/compress.c index 462fbdc7704..636f3744a3f 100644 --- a/usr.bin/file/compress.c +++ b/usr.bin/file/compress.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compress.c,v 1.9 2003/06/13 18:31:14 deraadt Exp $ */ +/* $OpenBSD: compress.c,v 1.10 2003/07/02 00:21:16 avsm Exp $ */ /* * compress routines: @@ -156,7 +156,7 @@ pipe2file(int fd, void *startbuf, size_t nbytes) char buf[4096]; int r, tfd; - (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf); + (void)strlcpy(buf, "/tmp/file.XXXXXXXXXX", sizeof buf); #ifndef HAVE_MKSTEMP { char *ptr = mktemp(buf); |