Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/column



Module Name:    src
Committed By:   oster
Date:           Sat Feb 23 19:58:06 UTC 2008

Modified Files:
        src/usr.bin/column: column.c

Log Message:
maxcols and DEFCOLS are column counts, not "how much space to
allocate" values.  Thus, if we multiply DEFCOLSL by sizeof(char *) we
should do likewise for maxcols (and not just add maxcols to the "how
much space to allocate" parameter!!)

Fixes the 'jot 33 1 > J33 ; paste -s J33 | column -t' SegFault
lossage reported by Jeremy Reed on tech-misc.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/usr.bin/column/column.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index