summaryrefslogtreecommitdiffstats
path: root/games/boggle
AgeCommit message (Collapse)AuthorFilesLines
2016-09-12If boardspec doesn't consist entirely of lower case letters, there will betb1-13/+11
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@otto1-2/+3
2016-09-11Callers of time(3) should #include <time.h>.tb1-1/+2
ok deraadt
2016-08-27Pull in <sys/select.h> for fd_setguenther1-1/+3
Pull in <time.h> for time() ok deraadt@
2016-08-27Pull in <time.h> for time() and perhaps other functionsguenther1-1/+2
ok deraadt@
2016-03-07- General changes:mestre1-3/+3
- 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)mestre2-4/+4
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/mestre2-4/+2
OK tb@
2016-01-10Remove unnecessary headersmestre5-16/+6
OK tb@
2016-01-07Some basic code maintenance in games/tb5-13/+24
- 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 sometimesmestre2-4/+2
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 variableschl1-2/+2
ok mmcc@
2015-12-25Declare usage() functions as __dead void, if they don't return, on games section.mestre1-2/+2
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.tb1-1/+4
skip mkdict and mkindex for now, they aren't installed anyway.
2015-11-05ctype functions take unsigned char values.guenther1-24/+36
Fix redrawing of the challenge cube (-c option) when <esc>word is used. ok mmcc@
2015-10-24Cast toupper()'s argument to unsigned char.mmcc1-2/+2
ok guenther@
2015-10-24Cast islower()'s argument to unsigned char.mmcc1-2/+2
ok guenther@
2015-10-24Cast islower()'s argument to unsigned char.mmcc1-2/+2
ok guenther@
2015-09-12use .Cm rather than .Ar for fixed string argumentsschwarze1-7/+7
2014-12-04Stop people from cheating. Especially those that believe in FIPS, theyderaadt5-32/+17
are the worst. ok millert ingo tedu
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,guenther1-2/+1
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.doug1-4/+4
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 normalschwarze1-3/+3
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) andschwarze1-4/+5
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.krw1-2/+2
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringguenther1-5/+5
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()fgsch3-6/+6
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt7-81/+7
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:" lineschwarze1-5/+5
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.mbalmer1-3/+3
2008-08-04Accept 'q' or 'Q' for quit at the --More-- prompt.millert1-2/+9
2008-04-05No need to say BSD only, this is OpenBSD. Also, remove part aboutmillert1-6/+1
versions that don't display the timer, we always do.
2008-03-26Bomb out if we cannot read the input. This happens when selectmillert2-7/+11
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()millert1-5/+5
2008-03-20Add single line descriptions for the -B and -c flags.millert1-0/+2
2008-03-20Update usage in help file.millert1-9/+9
2008-03-20Remove a bug that I fixed.millert1-7/+1
2008-03-20Make the bog code generic enough to handle arbitrary NxN grids andmillert6-139/+298
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:"'ssobrado1-5/+5
ok jmc@
2007-05-31convert to new .Dd format;jmc1-2/+2
2006-12-24fix program name in usage, use __prognamemartin1-3/+6
2006-04-11even better; tobias@bugol.dederaadt1-4/+2
2006-04-11oopsderaadt1-3/+3
2006-04-10atoi() -> strtonum(), also better handling of /0 problem spotted byderaadt1-4/+11
tobias@bugol.de. fix written by me
2006-04-03typo; from tobias stoeckmannjmc1-3/+3
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techtedu1-2/+5
2004-07-10more ansi; khalek@linuxgamers.netderaadt8-115/+66
2003-09-02escape punctuation;jmc1-2/+2
ok deraadt@
2003-07-10add missing includesdavid1-2/+3
ok deraadt@ tedu@
2003-06-03terms 3 & 4 cleanup based on "terms" filederaadt1-8/+1