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/vi/common/recover.c | |
parent | fca075bce30674cbd0b5e369662204aa742741ce (diff) |
bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)
Diffstat (limited to 'usr.bin/vi/common/recover.c')
-rw-r--r-- | usr.bin/vi/common/recover.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vi/common/recover.c b/usr.bin/vi/common/recover.c index 588022c1372..82375b21283 100644 --- a/usr.bin/vi/common/recover.c +++ b/usr.bin/vi/common/recover.c @@ -1,4 +1,4 @@ -/* $OpenBSD: recover.c,v 1.8 2002/02/16 21:27:57 millert Exp $ */ +/* $OpenBSD: recover.c,v 1.9 2003/07/02 00:21:16 avsm Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -163,7 +163,7 @@ rcv_tmp(sp, ep, name) goto err; } - (void)snprintf(path, sizeof(path), "%s/vi.XXXXXX", dp); + (void)snprintf(path, sizeof(path), "%s/vi.XXXXXXXXXX", dp); if ((fd = rcv_mktemp(sp, path, dp, S_IRWXU)) == -1) goto err; (void)close(fd); @@ -300,7 +300,7 @@ rcv_sync(sp, flags) if (opts_empty(sp, O_RECDIR, 0)) goto err; dp = O_STR(sp, O_RECDIR); - (void)snprintf(buf, sizeof(buf), "%s/vi.XXXXXX", dp); + (void)snprintf(buf, sizeof(buf), "%s/vi.XXXXXXXXXX", dp); if ((fd = rcv_mktemp(sp, buf, dp, S_IRUSR | S_IWUSR)) == -1) goto err; sp->gp->scr_busy(sp, @@ -364,7 +364,7 @@ rcv_mailfile(sp, issync, cp_path) if (opts_empty(sp, O_RECDIR, 0)) return (1); dp = O_STR(sp, O_RECDIR); - (void)snprintf(mpath, sizeof(mpath), "%s/recover.XXXXXX", dp); + (void)snprintf(mpath, sizeof(mpath), "%s/recover.XXXXXXXXXX", dp); if ((fd = rcv_mktemp(sp, mpath, dp, S_IRUSR | S_IWUSR)) == -1) return (1); |