]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(next_file_name): Use `sizeof *var' rather than
authorJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 06:25:45 +0000 (06:25 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Nov 2003 06:25:45 +0000 (06:25 +0000)
hard-coding `sizeof size_t'.

src/split.c

index 311b08e5db13db082dfb726257b8213ba88e54ca..b0b518649f1c20ed7a3ed242c7dd8aa189c8409e 100644 (file)
@@ -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