summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-04 06:25:45 +0000
committerJim Meyering <jim@meyering.net>2003-11-04 06:25:45 +0000
commit26809f0450870a3eb5b985069a6355241d98aa18 (patch)
treed499c2b23d8f35c11c4fe7ebba2aedb3f492436b /src/split.c
parent11e97f430c6f862b00c0c3d71b872cac37954f40 (diff)
downloadcoreutils-26809f0450870a3eb5b985069a6355241d98aa18.tar.xz
(next_file_name): Use `sizeof *var' rather than
hard-coding `sizeof size_t'.
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/split.c b/src/split.c
index 311b08e5d..b0b518649 100644
--- a/src/split.c
+++ b/src/split.c
@@ -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