Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | UTF-8 support: In a UTF-8 locale, properly align columns in the | 2015-12-03 | 1 | -71/+69 | |
| | | | | | | | | | | | presence of zero-width and double-width characters and replace non-printable codepoints and invalid bytes with ASCII question marks. No change in the C/POSIX locale. As a side effect, get rid of all pointer to pointer variables and simplify some of the code. Partially based on ideas from tedu@. Feedback and OK czarkoff@, OK tedu@. | ||||
* | Fix the obvious bug that with -z, every column was at least as wide | 2015-11-14 | 1 | -8/+7 | |
| | | | | as the previous one. While here, shorten the -z code by one line. | ||||
* | With -H, do not overrun your static buffer on files longer than 4 kB. | 2015-11-10 | 1 | -31/+25 | |
| | | | | | | | | | | | | With -K, do not print bogus blank lines in case of premature EOF. While here, completely rewrite get_line() in a modern style using getline(3), ferror(3), strdup(3), and ssize_t for line lengths. Completely get rid of the static buffer. I wouldn't be very surprised if this fixes even more bugs than the two ones mentioned above. OK (and "amazing") deraadt@ | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -3/+3 | |
| | |||||
* | data processing stdin to stdout; tame "stdout" | 2015-10-06 | 1 | -1/+4 | |
| | |||||
* | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | 2015-08-20 | 1 | -3/+3 | |
| | | | | ok krw millert | ||||
* | userland reallocarray audit. | 2014-10-08 | 1 | -2/+2 | |
| | | | | | | | Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the size argument with reallocarray(). ok deraadt@ | ||||
* | Include unistd.h as it is the standard location for getopt(). | 2013-11-15 | 1 | -1/+2 | |
| | | | | From Eitan Adler | ||||
* | don't try to stuff ptr differences into an int; from Arto Jonsson; ok espie@ | 2012-12-03 | 1 | -5/+4 | |
| | |||||
* | In preparation for getline and getdelim additions to libc, rename getline() | 2012-03-04 | 1 | -6/+6 | |
| | | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech. | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -15/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | sort flags. | 2009-10-14 | 1 | -3/+3 | |
| | |||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -3/+3 | |
| | |||||
* | Three undocumented options got lost in the conversion to getopt(3). | 2006-04-17 | 1 | -60/+4 | |
| | | | | | | | | Remove their remaining code, since they were not working before. Initial diff from Steffen Wendzel. ok millert@ | ||||
* | oops. grasp of alphabet...slipping... | 2005-05-15 | 1 | -3/+3 | |
| | |||||
* | Make usage/SYNOPSIS saner and sort the options. With jmc@ | 2005-05-15 | 1 | -3/+3 | |
| | |||||
* | Replace homegrown getnum() with strtonum() and replace atoi() with | 2005-05-14 | 1 | -40/+48 | |
| | | | | strtonum() and strtol(). | ||||
* | kill commented out code | 2005-05-14 | 1 | -28/+4 | |
| | |||||
* | make this use getopt() | 2005-05-14 | 1 | -99/+122 | |
| | |||||
* | use NULL for pointers. from Joris Vink | 2004-03-13 | 1 | -3/+3 | |
| | |||||
* | better realloc. ok deraadt@ | 2003-10-16 | 1 | -6/+10 | |
| | |||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -24/+14 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -11/+11 | |
| | |||||
* | kill more registers | 2001-11-19 | 1 | -18/+18 | |
| | | | | millert@ ok | ||||
* | fix -z; jarle@uninett.no | 2001-10-28 | 1 | -2/+2 | |
| | |||||
* | Kill extra newline in err()/warn(). | 1997-09-12 | 1 | -2/+4 | |
| | |||||
* | rcsid | 1996-06-26 | 1 | -0/+2 | |
| | |||||
* | avoid divide-by-zero trap when specifying small widths | 1996-05-21 | 1 | -45/+46 | |
| | | | | | | do not overrun entry array when printing output tables cleanup storage allocation for entries use err/warn etc. | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+547 | |