OpenBSD CVS

CVS log for src/usr.bin/column/column.c


[BACK] 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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.