diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-05 16:23:59 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-05 16:23:59 +0100 |
commit | 25d2460ae3dcbfb557016bbac6e8568e258caed3 (patch) | |
tree | 72805a981e0b80e4188c83f50fa019e2d916666d /src | |
parent | 31a9937081dc41a5f8d28d71709204e413e09972 (diff) | |
download | coreutils-25d2460ae3dcbfb557016bbac6e8568e258caed3.tar.xz |
mktemp: don't use suff_len in place of #-of-`X's variable
* src/mktemp.c (mkstemp_len, mkdtemp_len): Pass x_len as final
argument, and not suff_len.
Diffstat (limited to 'src')
-rw-r--r-- | src/mktemp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mktemp.c b/src/mktemp.c index ac35026e8..f60e82486 100644 --- a/src/mktemp.c +++ b/src/mktemp.c @@ -118,14 +118,14 @@ static int mkstemp_len (char *tmpl, size_t suff_len, size_t x_len, bool dry_run) { return gen_tempname_len (tmpl, suff_len, 0, dry_run ? GT_NOCREATE : GT_FILE, - suff_len); + x_len); } static int mkdtemp_len (char *tmpl, size_t suff_len, size_t x_len, bool dry_run) { return gen_tempname_len (tmpl, suff_len, 0, dry_run ? GT_NOCREATE : GT_DIR, - suff_len); + x_len); } int |