summaryrefslogtreecommitdiff
path: root/games/boggle
AgeCommit message (Collapse)Author
2023-10-10Print non-literal string with "%s"Theo Buehler
Caught by printf format attribute for printw(3) in newer curses.
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-10-23if both stdout and stderr are redirected to a non-tty, pledge(2) will killRicardo Mestre
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@
2016-09-12If boardspec doesn't consist entirely of lower case letters, there will beTheo Buehler
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
2016-09-12fix init, from randy hartman; ok tb@Otto Moerbeek
2016-09-11Callers of time(3) should #include <time.h>.Theo Buehler
ok deraadt
2016-08-27Pull in <sys/select.h> for fd_setPhilip Guenther
Pull in <time.h> for time() ok deraadt@
2016-08-27Pull in <time.h> for time() and perhaps other functionsPhilip Guenther
ok deraadt@
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-10Remove needless casts to (char *) NULL. Some were kept, namely for execl(3)mestre
last arguments since "The list of arguments must be terminated by a null null pointer" of type char * Suggested by and OK tb@
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-10Remove unnecessary headersmestre
OK tb@
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@
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
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@
2015-12-27remove unused variablesCharles Longeau
ok mmcc@
2015-12-25Declare usage() functions as __dead void, if they don't return, on games ↵mestre
section. Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore. OK tb@
2015-11-30pledge "stdio rpath tty" for boggle.tb
skip mkdict and mkindex for now, they aren't installed anyway.
2015-11-05ctype functions take unsigned char values.Philip Guenther
Fix redrawing of the challenge cube (-c option) when <esc>word is used. ok mmcc@
2015-10-24Cast toupper()'s argument to unsigned char.mmcc
ok guenther@
2015-10-24Cast islower()'s argument to unsigned char.mmcc
ok guenther@
2015-10-24Cast islower()'s argument to unsigned char.mmcc
ok guenther@
2015-09-12use .Cm rather than .Ar for fixed string argumentsIngo Schwarze
2014-12-04Stop people from cheating. Especially those that believe in FIPS, theyTheo de Raadt
are the worst. ok millert ingo tedu
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-09-28I was mistaken: Nothing's wrong with contractions, they're just a normalIngo Schwarze
feature of the English language, so revert that part of the previous. Requested by jmc@.
2014-09-26Add missing .An macros (found with mandoc -Tlint) andIngo Schwarze
resolve contractions (found with textproc/igor(1)). Work done by Kaspars at Bankovskis dot net during the EuroBSDCon 2014 documentation tutorial. Very minor addition of a few more missing .An macros by myself.
2013-09-12Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.Kenneth R Westerback
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
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@
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
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-05-21correct number of total words on the "Score:" lineIngo Schwarze
from Graeme Lee <graeme at omni dot net dot au> on tech@, tweaked by me while here, actually use the variables denom[12] defined a few lines above OK millert@
2008-08-12Fix a typo in a comment. From dawedawe@gmx.de.Marc Balmer
2008-08-04Accept 'q' or 'Q' for quit at the --More-- prompt.Todd C. Miller
2008-04-05No need to say BSD only, this is OpenBSD. Also, remove part aboutTodd C. Miller
versions that don't display the timer, we always do.
2008-03-26Bomb out if we cannot read the input. This happens when selectTodd C. Miller
says there has been a status change to indicate that the tty has gone away. Prevents spinning on terminal detach. OK pvalchev@
2008-03-24remove dependency on recalloc()Todd C. Miller
2008-03-20Add single line descriptions for the -B and -c flags.Todd C. Miller
2008-03-20Update usage in help file.Todd C. Miller
2008-03-20Remove a bug that I fixed.Todd C. Miller
2008-03-20Make the bog code generic enough to handle arbitrary NxN grids andTodd C. Miller
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@
2008-03-17synchronization between usage and synopsis; add some missing "usage:"'sIgor Sobrado
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2006-12-24fix program name in usage, use __prognameMartin Reindl
2006-04-11even better; tobias@bugol.deTheo de Raadt
2006-04-11oopsTheo de Raadt
2006-04-10atoi() -> strtonum(), also better handling of /0 problem spotted byTheo de Raadt
tobias@bugol.de. fix written by me
2006-04-03typo; from tobias stoeckmannJason McIntyre
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techTed Unangst
2004-07-10more ansi; khalek@linuxgamers.netTheo de Raadt