jdolecek 507cbfd5d0 Use patch provided Paul Janzen <pjanzen@OpenBSD.org> to fix
bin/12316 more completely.
Highlights:
* we only allow explicitly specified set of (numberic) formats
* %% is correctly skipped, extra %foo formats are detected
* '*' in format specification is not allowed

The code in getformat() is slighly different to the OpenBSD version
of fix - the list of allowed printf(3) flags is explicit and the
condition checking 'chardata' is written slighly differently.

Also pull-in some cosmetic changes from OpenBSD - s/isdefault()/is_default()/,
error() -> errx(), usage().
2001-03-14 07:50:06 +00:00
..
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-03-08 06:28:14 +00:00
2001-03-07 22:34:35 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-27 19:04:39 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-03-11 21:28:59 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-20 23:51:59 +00:00
2001-02-19 23:03:42 +00:00
2001-02-20 23:51:59 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-20 23:51:59 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-03-09 03:05:20 +00:00
2001-02-20 23:51:59 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-24 00:43:50 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00
2001-02-19 23:03:42 +00:00