]> git.ipfire.org Git - thirdparty/coreutils.git/commit
pr: avoid two over-allocations
authorJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 06:53:44 +0000 (07:53 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 11:03:06 +0000 (12:03 +0100)
commitcd349fdca2f3368d1c2441a432dda2f064e4c455
tree927eed72d6eb522760046fd68b340b42d2bae14e
parenteccf54368f51b9492f1e744b66aeb56cea8706e9
pr: avoid two over-allocations

* src/pr.c (init_store_cols): Allocate N*sizeof(*VAR) bytes,
not N*sizeof(int*).  The latter would mistakenly allocate double
the required space on a system with 8-byte pointers.
src/pr.c