Up to [local] / src / usr.bin / column
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_8_BASE
Revision 1.19 / (download) - annotate - [select for diffs], Thu May 22 19:50:34 2014 UTC (10 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.18: +7 -5 lines
Diff to previous 1.18 (colored)
If we have to realloc() "list" we need to zero out the new entries to match the behavior of the initial calloc(). The "cols" array does not actually need to be zeroed so use reallocarray() instead of calloc(). Also fix a memory leak of tbl and initialize the value of maxcols/maxentry in the assignment instead of in the ecalloc() call. OK espie@