Commit Graph

14 Commits

Author SHA1 Message Date
kris
fd8b4f057c Don't call printf with no format string. 2000-07-10 06:02:13 +00:00
sheldonh
3142e8d808 Back out rev 1.11, about which bde had concerns, and instead implement
appropriate bounds-checking and typecasts based on our knowledge of
the desired conversion format specifier.

Simplify diagnostics and take care to print the correct conversion
format specifier when %l is involved.
2000-01-06 15:37:37 +00:00
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sheldonh
aedb60717d Don't dump core for a known, documented bug.
PR:	12611
Reviewed by:	markm
1999-07-22 17:33:11 +00:00
sheldonh
303d970c22 Improve printf(3) conversion specifier parsing so that silly formats
aren't allowed and the right casts can be used for printf() statements.

Document the conversion specifier limitations and the fact that
arithmetic overflow causes a fatal error.

PR:	12611
Reported by:	Frode Vatvedt Fjeld <frodef@acm.org>
Reviewed by:	bde
1999-07-22 17:11:59 +00:00
kris
ad387cb09f Correct an error in a manpage example, add -Wall -W to Makefile (no
warnings given) and modify source to use arc4random() instead of random().

Reviewed by:	ache
1999-05-13 12:18:24 +00:00
charnier
067373042e Mdoc'ify man page. 1997-11-03 07:45:33 +00:00
charnier
57cb00d034 Use err(3) instead of local redefinition. Add usage(). 1997-07-15 09:59:30 +00:00
ache
3eb72e5222 Remove srandomdev fallback code 1997-06-14 00:27:03 +00:00
ache
f83a644bc3 Use srandomdev() now
Fix error with begin variable calculation
1997-03-30 23:13:59 +00:00
ache
05248ffb84 Fix srandom arg type according to Lite2 1997-03-11 14:06:52 +00:00
ache
59b85e2e85 Add ^ getpid() to make more random results for subsequent calling.
Add proper type casting to random calls

Should go into 2.2
1997-03-08 11:40:15 +00:00
joerg
50ae103b2a >Number: 917
>Category:       bin
>Synopsis:       -s option in jot is broken
1995-12-29 12:18:46 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00