mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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:
1 parent
31a9937081
commit
25d2460ae3
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user