Commit Graph

21 Commits

Author SHA1 Message Date
dholland 44d9434e65 Move scratch variables of main to main, instead of having them be
file-static.
2012-10-13 19:44:36 +00:00
wiz a19484822f Man page and usage cleanups from Bug Hunting in PR 46103. 2012-02-26 21:06:59 +00:00
joerg 4511a017c1 Use __dead 2011-08-29 20:30:36 +00:00
dholland 9795f61a5a sprinkle static 2009-08-12 05:17:57 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
reed 57c4a8a6b0 Check that -w width is not above maximum. (It already checks for zero or
negative.) Using width above DWIDTH may cause overflow as noted by Gruzicki
Wlodek on bugtraq.

While here replace one use of 132 with DWIDTH.
2006-11-22 16:15:42 +00:00
jmc 86a7383a37 Whitespace fix 2005-07-01 01:13:05 +00:00
rillig 556489aa53 Changed the type of data_table to be unsigned char[] instead of char[],
because it is initialized with values >= SCHAR_MAX. Also removed two
unnecessary bit mask operations. These changes do not affect the actual
behavior. Also replaced an "#ifdef notdef" with "#if 0". All these
changes are mainly for reducing lint(1) warnings.
2005-06-27 20:32:07 +00:00
rillig 45a38dbbe7 Fixed buffer overflow with long command line arguments. 2005-06-27 19:49:20 +00:00
jsm cb5fd8342e Remove uses of __P. 2004-01-27 20:30:28 +00:00
agc e5aeb4ea46 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
hubertf 146de2e635 Back out last due to think o on my side: we don't start banner through
dm(6), so there's no setgid privileges to discard. Pointed out by
Joseph S. Myers <jsm28@cam.ac.uk>
1999-07-19 19:07:17 +00:00
hubertf ccb3350fe4 Drop setgid privs passed from dm(6).
Patch submitted in PR 5945 by Joseph S. Myers <jsm28@cam.ac.uk>
1999-07-19 00:42:59 +00:00
hubertf bd946d241e constify (PR#6151, once more by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-14 09:30:57 +00:00
lukem 3a6c1a05c2 WARNSify, fixup .Nm usage 1997-10-10 09:48:47 +00:00
mikel eddd3a13f2 eliminate redundant SCCS id; from Enami Tsugutomo in PR bin/3283. 1997-03-04 05:48:42 +00:00
tls 15b816a728 Sync to 4.4BSD-Lite2 1997-01-07 11:40:24 +00:00
cgd 0f6f98c7bc don't print 'Message:' prompt if stdin is not a terminal.
(from Masanobu Saitoh <saitoh@spa.is.uec.ac.jp> in pr 982.)
Also, fix usage string and manual page to note that width argument
for -w is _not_ optional.
1995-04-22 11:55:13 +00:00
glass 6cf93c4b6d Merge 4.4Lite version 1995-03-25 07:44:46 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd b6aa45dca4 added banner from net-2 1993-04-04 10:48:54 +00:00