summaryrefslogtreecommitdiff
path: root/games/banner
AgeCommit message (Collapse)Author
2018-10-16More fixes from David Fifield:Theo Buehler
First, fill a missing pixel in the glyph for 'U'. Second, fix an off-by-one in the line output routine. This caused an extra space character to be output at the end of every line. It might have caused a buffer overflow if any glyph had used the entire possible width of 132 pixels, but as it is the widest is only 124 pixels. Third, output blank lines instead of lines full of spaces (the number of spaces was equal to the width of the most recent non-blank line). Finally, add bounds checks to protect against buffer overflows that could arise in case the data table were ever modified to draw out of bounds (characters wider or taller than 132 pixels, or a two-byte code where the second byte is past the end of the table). ok bcallah
2018-10-16Remove unused data table entries: 174 out of 9271 entries of the bitmapTheo Buehler
data table are unused and can be eliminated by rendering al glyphs and re-encoding them. A few more entries can be eliminated through more efficient encoding. Patch generated with a python program by David Fifield. For details see https://marc.info/?l=openbsd-bugs&m=153955110702704&w=2 ok bcallah
2016-03-07- General changes:mestre
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3) - Specific changes: - atc(6): this used -? and -u for usage(), remove both from game and manpage - bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h - hunt(6): replace fputs(3) by fprintf(3) OK tb@ after his suggestions
2016-01-07Some basic code maintenance in games/tb
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
2015-12-25- use strtonum(3) instead of atoi(3)Gleydson Soares
- while here switch main() to return instead of exit(3), makes stack protector happy. OK tb@
2015-10-14Pledge "stdio" for simple games.Doug Hogan
ok semarie@
2015-02-10the stem of the b was not descending all the way to the baseline.Ted Unangst
now `/usr/games/banner libressl` is extra purty. i should credit miod for reminding me of this program's existence by requesting that i not paste its output into chat.
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-10-17add missing option to usage; while here, minor KNF tweak.Igor Sobrado
2007-08-23Check fgets for failure and do a proper newline strip.Ray Lai
Initial diff from Charles Longeau. OK otto and moritz.
2007-05-31convert to new .Dd format;Jason McIntyre
2006-11-22Fix an int overflow, reported on bugtraq by Gruzicki Wlodek; ok millert@Otto Moerbeek
2004-07-09ansi; khalek@linuxgamers.netTheo de Raadt
2003-10-01Correct off-by-one.Chad Loder
OK deraadt@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30section reorder;Jason McIntyre
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenTheo de Raadt
already, but he may have later changes to make still.
2002-05-31No dm -> no need to revoke setegid.Paul Janzen
2001-11-17section consistency: AUTHOR -> AUTHORS, even if only one listed;Paul Janzen
mpech@prosoft.org.lv
2001-08-18FormattingPaul Janzen
1999-07-09- remove all trailing whitespaceAaron Campbell
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1998-12-15Always provide an argument to .Nm in SYNOPSIS sectionPaul Janzen
1998-11-29Don't capitalize game names at the beginning of sentences.Paul Janzen
1998-09-15use const where appropriate; jsm28@cam.ac.ukPaul Janzen
1998-08-19tags, formatting, ANSI-fication, prototypes, de-typos, and the occasionalPaul Janzen
initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
1998-03-12OpenBSD ID (changed from NetBSD)Paul Janzen
1998-02-22repairs from pjanzen@foatdi.harvard.eduTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-07-23tabifykstailey
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-22proper gid revokeTheo de Raadt
1996-12-19setgid games, not setuid games. closes a neat set of holesTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt