mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(next_file_name): Use `sizeof *var' rather than
hard-coding `sizeof size_t'.
This commit is contained in:
1 parent
11e97f430c
commit
26809f0450
1 file changed
+1
-1
+1
-1
@@ -153,7 +153,7 @@ next_file_name (void)
|
||||
memcpy (outfile, outbase, outbase_length);
|
||||
memset (outfile_mid, suffix_alphabet[0], suffix_length);
|
||||
outfile[outfile_length] = 0;
|
||||
sufindex = xcalloc (suffix_length, sizeof (size_t));
|
||||
sufindex = xcalloc (suffix_length, sizeof *sufindex);
|
||||
|
||||
#if ! _POSIX_NO_TRUNC && HAVE_PATHCONF && defined _PC_NAME_MAX
|
||||
/* POSIX requires that if the output file name is too long for
|
||||
|
||||
Reference in new issue
Block a user