summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2007-09-14remove some warnings:Charles Longeau
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-09Move redundant prompt/fgets/sscanf lines into a function withRay Lai
appropriate checks, changing sscanf to strtonum in the process. Initial diff from Charles Longeau. OK moritz and chl.
2007-09-06use strcspn to properly overwrite '\n' in fgets returned bufferCharles Longeau
ok moritz@ ray@
2007-09-04Some more simple malloc(n * m) -> calloc(n, m) conversions.Hans-Joerg Hoexer
ok deraadt@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-23Check fgets for failure and do a proper newline strip.Ray Lai
Initial diff from Charles Longeau. OK otto and moritz.
2007-07-10update some capital cities (and spelling); from Daniel DickmanJason McIntyre
2007-06-26Set shortest string count to 0 in strfile(8), if there a no strings foundMoritz Jodeit
and check the number of strings in fortune(6) to prevent empty fortune files to cause division by zero. Fixes PR 5514. OK miod@ ray@ deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-27- add Beijing as a choice for the capital of ChinaAntoine Jacoutot
from Daniel Dickman <didickman at gmail dot com> ok pyr@
2007-05-07brigader -> brigadier;Jason McIntyre
2007-04-13when updating atc(6) to split the -f and -g flags in two optionsIgor Sobrado
I missed synchronizing the usage() function. problem noticed by jmc@
2007-04-13let -f and -g be in different options even if the argumentIgor Sobrado
names to both flags are the same. spotted by jmc@ with relation to other manual page. ok by jmc@
2007-04-02provide some missing arguments and tidy up usage(); from Igor SobradoJason McIntyre
2007-04-02tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2007-04-02tidy up synopsis and sort options; from Igor SobradoJason McIntyre
2007-04-02-i takes an argument; from Igor SobradoJason McIntyre
2007-04-02tidy up synopis and usage(); sort options; from Igor SobradoJason McIntyre
2007-04-02sort options; from Igor SobradoJason McIntyre
2007-04-02-d takes an argument; from Igor SobradoJason McIntyre
2007-04-02tidy up synopsis; from Igor SobradoJason McIntyre
tweak AUTHORS whilst here
2007-04-02sort options + kill usage() verbosity; from Igor SobradoJason McIntyre
2007-04-02tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2007-04-02-o and -r take arguments; from Igor SobradoJason McIntyre
2007-04-02.Ar for arguments; from Igor SobradoJason McIntyre
2007-03-22typo; from Seth HieronymusJason McIntyre
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2007-03-02strlen fixes from Charles Longeau.Ray Lai
OK moritz@.
2007-02-21- Pass full buffer size to fgets.Ray Lai
- No need to initialize buffer. - Spacing. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK moritz@.
2006-12-24fix typos in comments (verses->versus)Martin Reindl
2006-12-24fix program name in usage, use __prognameMartin Reindl
2006-12-14fix some obvious mistakes to make DEBUG compileMartin Reindl
ok otto@
2006-12-14fix DEBUG by renaming a variable colliding with ncursesMartin Reindl
found by Sascha Welter, ok otto@
2006-11-22Fix an int overflow, reported on bugtraq by Gruzicki Wlodek; ok millert@Otto Moerbeek
2006-11-07make delayed turn commands not become immediate when there is aTheo de Raadt
request to go to the same altitude as already at. pr 3448
2006-11-06signed char fixes need to avoid infinite loops; pr5284 fromTheo de Raadt
smallm@panix.com a very well written pr, very detailed... well worth reading
2006-11-02Don't check buf[strlen(buf) - 1] on empty strings.Ray Lai
OK moritz@.
2006-11-02Check fgets failure and clarify character checks.Ray Lai
OK moritz@.
2006-11-02Don't access buf[strlen(buf) - 1] on empty strings.Ray Lai
OK moritz@.
2006-11-02Check for valid character before truncating string.Ray Lai
Initial patch from Charles Longeau <chl at tuxfamily dot org>. OK moritz@.
2006-11-01tidy up the quick reference section;Jason McIntyre
2006-11-01Sort flags and commands.Ray Lai
Use correct capitalization and punctuation in flag descriptions. Mark up -n flag in description. Help and OK jmc@.
2006-10-31Remove -h flag and simplify usage output to one line, like mostRay Lai
other programs. Vote to simplify usage jmc@, OK martin@.
2006-10-31usage information goes to stderrMartin Reindl
2006-10-31Add new -d flag to SYNOPSIS and remove optional and unfunctionalRay Lai
[-] flag, which, according to FreeBSD logs, is supposed to print the usage. Sort flags in SYNOPSIS and DESCRIPTION. OK martin@, jmc@. Detective work and ok to kill [-] otto@.
2006-10-29-d: make it possible playing without doubling as it is not commonlyMartin Reindl
played everywhere in the world ok todd@ otto@
2006-10-24Check strlen(buf) to be > 0 before accessing buf[strlen(buf)-1].Moritz Jodeit
OK ray@ cloder@
2006-10-11use SEEK_SET; chl@tuxfamily.orgTheo de Raadt