1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-05 11:43:49 +02:00

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.
This commit is contained in:
Jim Meyering
2009-11-05 16:23:59 +01:00
parent 31a9937081
commit 25d2460ae3

View File

@@ -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