summaryrefslogtreecommitdiffstats
path: root/usr.bin/rs/rs.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords to rs(1)ed2011-11-061-38/+38
|
* - Use LINE_MAX from limits.h as the maximum line length instead ofjh2011-02-071-6/+12
| | | | | | | | | BUFSIZ. Use LINE_MAX * 2 as the buffer size (BSIZE). - Error out if we encounter a line longer than LINE_MAX. The previous behavior was to silently split long lines and produce corrupted output. PR: bin/151384
* Handle EOF when skipping lines.jh2011-02-071-1/+4
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Setting a variable to the same value twice doesn't actually make itcperciva2008-08-041-1/+0
| | | | | | more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
* - Set negative row or column argument values to zero.robert2005-04-281-3/+5
| | | | | | | | | Negative values would produce undefined behaviour including a possible segmentation fault. - Explicitly initialize the global row and column variables to zero. PR: bin/80348
* Avoid passing negative values to isdigit() on machines with signed chars.tjr2004-07-151-5/+5
|
* Contrary to what the comments said, rs -H did not recycle storage, it justtjr2002-06-071-1/+3
| | | | | kept writing past the end of the buffer. Correct the code so that it actually does recycle storage.
* Use __FBSDID, ANSIfy functions, fix const string.markm2002-04-281-44/+37
|
* remove __Pimp2002-03-221-10/+10
|
* Do not overrun entry array when printing output tables.ru2001-09-101-24/+22
| | | | | | Cleanup storage allocation for entries. Obtained from: NetBSD
* Fixed SIGFPE (divide by zero) if column's width exceeds display width (-w).ru2001-09-101-1/+3
| | | | Obtained from: OpenBSD
* Fixed the -z option handling:ru2001-09-101-3/+6
| | | | | | | | | | -Wuninitialized if used without -t. PR: bin/30467 Null pointer dereference if used with -t. Maximum column width computation was wrong.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add #include <string.h> to get prototypes.jb1998-02-201-1/+2
|
* Use err(3). Add usage(). Rewrote man page in mdoc format.charnier1997-08-071-23/+24
|
* The rs(1) command dumps core with the -s option (SIGSEGV)joerg1996-05-261-4/+5
| | | | | | (Fix a rangecheck condition.) Closes PR # bin/1244: rs(1) dumps core with -s
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+546
OpenPOWER on IntegriCloud