#
bda84ce9 |
| 23-Oct-2021 |
mestre <mestre@openbsd.org> |
if both stdout and stderr are redirected to a non-tty, pledge(2) will kill ncurses applications, e.g.:
/usr/games/worms 2>&1 | cat
solve this by only calling pledge(2) after initscr(3) is set and d
if both stdout and stderr are redirected to a non-tty, pledge(2) will kill ncurses applications, e.g.:
/usr/games/worms 2>&1 | cat
solve this by only calling pledge(2) after initscr(3) is set and done, or whatever function that calls it. since pledge(2) is called later now the promises might be reduced, but this a diff for another day.
found by naddy@ almost a year ago, discussed with him deraadt@ and tb@ ok tb@
show more ...
|
#
23e9b320 |
| 12-Sep-2016 |
tb <tb@openbsd.org> |
If boardspec doesn't consist entirely of lower case letters, there will be out of bound accesses of arrays, leading to sefaults or bus errors. Verify that at most one boardspec with lower case lette
If boardspec doesn't consist entirely of lower case letters, there will be out of bound accesses of arrays, leading to sefaults or bus errors. Verify that at most one boardspec with lower case letters is given, or error out.
ok millert
show more ...
|
#
1456f860 |
| 12-Sep-2016 |
otto <otto@openbsd.org> |
fix init, from randy hartman; ok tb@
|
#
1614e62e |
| 27-Aug-2016 |
guenther <guenther@openbsd.org> |
Pull in <time.h> for time() and perhaps other functions
ok deraadt@
|
#
6fa5e1da |
| 07-Mar-2016 |
mestre <mestre@openbsd.org> |
- General changes: - 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 -? an
- General changes: - 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
show more ...
|
#
80cf6802 |
| 10-Jan-2016 |
mestre <mestre@openbsd.org> |
Remove unnecessary headers
OK tb@
|
#
17641e31 |
| 07-Jan-2016 |
tb <tb@openbsd.org> |
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-decl
Some basic code maintenance in games/
- 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@
show more ...
|
#
9ea8ec70 |
| 03-Jan-2016 |
mestre <mestre@openbsd.org> |
About 13 years ago when the idiom srandom(time()), and sometimes srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it.
Additionally, earl
About 13 years ago when the idiom srandom(time()), and sometimes srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it.
Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also.
"seems comprehensive to me" deraadt@ and OK tb@
show more ...
|
#
02cc2a4e |
| 30-Nov-2015 |
tb <tb@openbsd.org> |
pledge "stdio rpath tty" for boggle.
skip mkdict and mkindex for now, they aren't installed anyway.
|
#
9981a40b |
| 24-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Cast islower()'s argument to unsigned char.
ok guenther@
|
#
1e147742 |
| 04-Dec-2014 |
deraadt <deraadt@openbsd.org> |
Stop people from cheating. Especially those that believe in FIPS, they are the worst. ok millert ingo tedu
|
#
d6ad5e9a |
| 11-Oct-2014 |
doug <doug@openbsd.org> |
Userland reallocarray() audit.
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
#
8aac6f43 |
| 18-Aug-2013 |
guenther <guenther@openbsd.org> |
Fix calls to printf-like functions which passed a non-fixed string as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when
Fix calls to printf-like functions which passed a non-fixed string as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified.
ok jung@ millert@ krw@
show more ...
|
#
f9bbbf45 |
| 04-Mar-2012 |
fgsch <fgsch@openbsd.org> |
In preparation for getline and getdelim additions to libc, rename getline() occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
show more ...
|
#
d708773f |
| 12-Aug-2008 |
mbalmer <mbalmer@openbsd.org> |
Fix a typo in a comment. From dawedawe@gmx.de.
|
#
3f105a8a |
| 24-Mar-2008 |
millert <millert@openbsd.org> |
remove dependency on recalloc()
|
#
f234f5d5 |
| 20-Mar-2008 |
millert <millert@openbsd.org> |
Make the bog code generic enough to handle arbitrary NxN grids and add cubes for 5x5 mode based on Boggle Deluxe (aka Big Boggle) as well as support for the "challenge cube" shipped with some version
Make the bog code generic enough to handle arbitrary NxN grids and add cubes for 5x5 mode based on Boggle Deluxe (aka Big Boggle) as well as support for the "challenge cube" shipped with some versions of Boggle. Also Dynamically allocate record keeping structures so we can deal with large word lists and add a --More-- prompt for when there are too many wwords found by the computer to fit on the terminal. OK deraadt@
show more ...
|
#
a307e700 |
| 17-Mar-2008 |
sobrado <sobrado@openbsd.org> |
synchronization between usage and synopsis; add some missing "usage:"'s
ok jmc@
|
#
c450c831 |
| 24-Dec-2006 |
martin <martin@openbsd.org> |
fix program name in usage, use __progname
|
#
ff8320a7 |
| 10-Jul-2004 |
deraadt <deraadt@openbsd.org> |
more ansi; khalek@linuxgamers.net
|
#
7a09557b |
| 03-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1e311cb0 |
| 07-Apr-2003 |
tdeval <tdeval@openbsd.org> |
strlcpy -- ok tedu@, deraadt@, millert@
|
#
ffe3e522 |
| 06-Dec-2002 |
millert <millert@openbsd.org> |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3) good enough for games but we should at least use a decent seed. pjanzen@ OK
|
#
97419aa0 |
| 31-May-2002 |
pjanzen <pjanzen@openbsd.org> |
de-register
|