summaryrefslogtreecommitdiff
path: root/src/paste.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-06 09:54:28 +0000
committerJim Meyering <jim@meyering.net>2003-11-06 09:54:28 +0000
commit85011d8cd572bf9bcbfd877aa6f05e0361d21942 (patch)
tree4b201fc2b9db1a244b92571346da853037425895 /src/paste.c
parent5e97cd934e11e2722ae331ba49c9100b79e42016 (diff)
downloadcoreutils-85011d8cd572bf9bcbfd877aa6f05e0361d21942.tar.gz
coreutils-85011d8cd572bf9bcbfd877aa6f05e0361d21942.tar.bz2
coreutils-85011d8cd572bf9bcbfd877aa6f05e0361d21942.zip
(paste_parallel): Use `sizeof *var' rather than hard-coding `sizeof FILE*'.
Diffstat (limited to 'src/paste.c')
-rw-r--r--src/paste.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paste.c b/src/paste.c
index 9753d83f5..c83ace9fd 100644
--- a/src/paste.c
+++ b/src/paste.c
@@ -183,7 +183,7 @@ paste_parallel (int nfiles, char **fnamptr)
{
file_list_size += 12;
delbuf = xrealloc (delbuf, file_list_size + 2);
- fileptr = xrealloc (fileptr, (file_list_size + 1) * sizeof (FILE *));
+ fileptr = xrealloc (fileptr, (file_list_size + 1) * sizeof *fileptr);
}
if (STREQ (fnamptr[files_open], "-"))
{