]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
jnemeth [Wed, 29 Mar 2006 01:18:39 +0000 (01:18 +0000)]
Fix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.
Approved by christos@.
christos [Wed, 22 Mar 2006 15:24:52 +0000 (15:24 +0000)]
Add missing parens.
christos [Wed, 22 Mar 2006 05:03:10 +0000 (05:03 +0000)]
Simplify (Masao Uebayashi)
christos [Wed, 22 Mar 2006 04:24:14 +0000 (04:24 +0000)]
Coverity CID 692: Another && that should be ||. Boy...
christos [Wed, 22 Mar 2006 04:22:05 +0000 (04:22 +0000)]
Coverity CID 558: && should be obviously ||
christos [Tue, 21 Mar 2006 20:25:55 +0000 (20:25 +0000)]
Coverity CID 2735: Remove dead code.
christos [Tue, 21 Mar 2006 17:14:15 +0000 (17:14 +0000)]
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
so that we don't end up storing garbage accidentally and the next pointer is
initialized. If there is an inconsistency in the file abort instead
of dereferencing NULL.
rtr [Mon, 20 Mar 2006 12:32:21 +0000 (12:32 +0000)]
remove duplicate #include <stdlib.h>
he [Sun, 19 Mar 2006 12:09:39 +0000 (12:09 +0000)]
Now that we use exit(2), we need to include <stdlib.h> for its definition.
christos [Sun, 19 Mar 2006 06:02:50 +0000 (06:02 +0000)]
include <stdlib.h> to get a prototype for exit
christos [Sun, 19 Mar 2006 01:00:35 +0000 (01:00 +0000)]
Coverity CID 1197: Don't pass -1 to close.
christos [Sun, 19 Mar 2006 00:56:12 +0000 (00:56 +0000)]
Coverity CID 1467: Elide static buffer overflow.
christos [Sun, 19 Mar 2006 00:50:28 +0000 (00:50 +0000)]
Coverity CID 868: Fix possible NULL deref (after INFTIM passes :-)
christos [Sun, 19 Mar 2006 00:41:46 +0000 (00:41 +0000)]
Coverity CID 980: Prevent an impossible NULL point deref.
christos [Sun, 19 Mar 2006 00:37:15 +0000 (00:37 +0000)]
Coverity CID 2073: Fix memory leak.
christos [Sun, 19 Mar 2006 00:32:18 +0000 (00:32 +0000)]
Coverity CID 999: Prevent NULL deref.
christos [Sun, 19 Mar 2006 00:29:27 +0000 (00:29 +0000)]
Coverity CID 695: Remove impossible condition. This changes the scoring as
it was probably intended originally.
christos [Sun, 19 Mar 2006 00:19:31 +0000 (00:19 +0000)]
Coverity CID 998: Possible NULL pointer deref. Actually this was a bug
where a house to be sold would be skipped. Change the sell loop to be like
the buy side loop.
christos [Sun, 19 Mar 2006 00:18:47 +0000 (00:18 +0000)]
fix typo
christos [Sun, 19 Mar 2006 00:05:05 +0000 (00:05 +0000)]
Coverity CID 1004: Fix NULL deref.
christos [Sun, 19 Mar 2006 00:03:18 +0000 (00:03 +0000)]
Coverity CID 1005: Fix NULL deref and incorrect variable use.
christos [Sun, 19 Mar 2006 00:00:19 +0000 (00:00 +0000)]
Coverity CID 1443: Prevent static overrun.
christos [Sat, 18 Mar 2006 23:54:17 +0000 (23:54 +0000)]
Coverity CID 827: Prevent NULL pointer deref.
christos [Sat, 18 Mar 2006 23:51:51 +0000 (23:51 +0000)]
Coverity CID 1699: Fix memory leaks.
christos [Sat, 18 Mar 2006 23:44:05 +0000 (23:44 +0000)]
Coverity CID 2544: Fix memory leak.
christos [Sat, 18 Mar 2006 23:38:12 +0000 (23:38 +0000)]
Coverity CID 1786: Close file.
christos [Sat, 18 Mar 2006 23:35:51 +0000 (23:35 +0000)]
Coverity CID 570: Remove impossible check.
christos [Sat, 18 Mar 2006 23:33:38 +0000 (23:33 +0000)]
Coverity CID 1195: Check for possible negative index.
christos [Sat, 18 Mar 2006 23:31:19 +0000 (23:31 +0000)]
Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.
christos [Sat, 18 Mar 2006 23:25:30 +0000 (23:25 +0000)]
Coverity CID 1230: Remove spurious close().
christos [Sat, 18 Mar 2006 23:23:33 +0000 (23:23 +0000)]
Coverity CID 1294: Avoid negative variable used as index.
christos [Sat, 18 Mar 2006 23:14:45 +0000 (23:14 +0000)]
Coverity CID 1295: Don't allow cchose to return a negative number. It is
used as an index.
rtr [Sat, 18 Mar 2006 09:40:46 +0000 (09:40 +0000)]
fclose() open FILE * even though we are returning to fail anyway.
silences coverity, CID 1590 / run 5
rtr [Sat, 18 Mar 2006 05:16:46 +0000 (05:16 +0000)]
don't access out of bounds element of static alloc array.
found by Coverity, CID 1519 / Run 5
XXX possible that intention was to start with i = 0.
abs [Sat, 18 Mar 2006 01:43:52 +0000 (01:43 +0000)]
If none of the boarding parties are set do not fall off the end of the
list. Addresses Coverity CID 1507. Also put pointers before shorts in
a struct rather than mixing them up
abs [Fri, 17 Mar 2006 23:36:38 +0000 (23:36 +0000)]
add more "ifdef notdef" around unused sections - addresses Coverity CID 564
abs [Fri, 17 Mar 2006 23:34:37 +0000 (23:34 +0000)]
Add a missing bp->b_score not null check - addresses Coverity CID 1003
abs [Fri, 17 Mar 2006 23:22:59 +0000 (23:22 +0000)]
if getpwuid() returns null, print out the uid rather than dereferencing
Addresses Coverity CID 930
abs [Fri, 17 Mar 2006 23:15:02 +0000 (23:15 +0000)]
Fix overrun in players[] array. Addresses Coverty CID 1457
abs [Fri, 17 Mar 2006 23:11:47 +0000 (23:11 +0000)]
If getpwuid() returns null, its not usually a good idea to dereference
that to try to assign a default value. Just copy the default value into
the final destination.
Addresses Coverty CID 925
abs [Fri, 17 Mar 2006 23:04:01 +0000 (23:04 +0000)]
Call fclose() appropriately if there is a problem with the save file.
Coverty CID 2063
simonb [Sat, 25 Feb 2006 12:04:23 +0000 (12:04 +0000)]
Use MKPRIVATELIB instead of NOLINKLIB/NOMAN/NOPIC/NOLINT.
simonb [Sat, 25 Feb 2006 11:56:51 +0000 (11:56 +0000)]
Change DPADD from LIBTERM (which doesn't exist) and LIBCOMPAT (which it
doesn't use) to LIBTERMCAP (which it does use).
wiz [Sat, 25 Feb 2006 02:06:08 +0000 (02:06 +0000)]
Fix typo in the instructions.
wiz [Sat, 25 Feb 2006 01:40:22 +0000 (01:40 +0000)]
Remove duplicate and uncredited "Plan for the Improvement of English
Spelling", which is also in the file "fortunes".
jnemeth [Mon, 20 Feb 2006 03:00:27 +0000 (03:00 +0000)]
Correct The Hitchhiker's Guide to the Galaxy entry about dolphins as per
page 119 of the book.
elad [Tue, 24 Jan 2006 19:01:45 +0000 (19:01 +0000)]
moduli utils moved from games to usr.bin.
elad [Tue, 24 Jan 2006 18:51:20 +0000 (18:51 +0000)]
Remove qsiefe/qsafe from games. Will be put back in usr.bin.
wiz [Sun, 22 Jan 2006 21:22:30 +0000 (21:22 +0000)]
Bump date for previous.
wiz [Sun, 22 Jan 2006 00:32:54 +0000 (00:32 +0000)]
Drop trailing whitespace. Remove superfluous .br.
elad [Fri, 20 Jan 2006 21:40:08 +0000 (21:40 +0000)]
better handle ^d in getinp(), so we dont loop endlessly.
i have no idea why i wanted to play this game.
elad [Fri, 20 Jan 2006 14:19:31 +0000 (14:19 +0000)]
oops, make this install to /usr/games and not /...
noted by hannken@, thanks.
elad [Thu, 19 Jan 2006 23:25:19 +0000 (23:25 +0000)]
Descend to moduli too.
elad [Thu, 19 Jan 2006 23:23:58 +0000 (23:23 +0000)]
Add qsieve and qsafe, two programs used for generating the moduli file.
These were written by William Allen Simpson and submitted in PR 21983,
and are added with minor adjustments and nits from christos@ and myself.
Approved by christos@ and groo@.
garbled [Thu, 19 Jan 2006 21:20:35 +0000 (21:20 +0000)]
Fix some minor buglets in wump:
1) Don't put two pits in the same room.
2) Don't put bats and pits in the same room. (you will never hit the bat)
3) Don't start the player in a room with a pit or bad, if possible. Some
caves are so crowded the loop may go on forever, so we give up after 100
tries to put them in a safe location (as long as it's not with the wumpus).
4) Make the manpage reflect reality WRT the default number of rooms.
Bug #3 pointed out by salo.
garbled [Thu, 19 Jan 2006 20:15:31 +0000 (20:15 +0000)]
Apply patch from PR bin/26501 to fix hang in wump if you play too many
games in a row. Also modify change made in rev 1.18 to work correctly.
take_action() returns 1 if the player dies, causing the game to allways
exit after any death, now the game correctly asks if the player would
like to play again.
christos [Sat, 19 Nov 2005 18:01:42 +0000 (18:01 +0000)]
Simplify error checking.
rillig [Sat, 19 Nov 2005 14:22:21 +0000 (14:22 +0000)]
Replaced one instance of err() with errx(), as the value of errno might not
be correct at that time.
mjl [Sat, 29 Oct 2005 22:49:36 +0000 (22:49 +0000)]
Typos, duplicate words, consistent formatting.
mjl [Sat, 29 Oct 2005 22:35:41 +0000 (22:35 +0000)]
Remove trailing spaces, double spaces between words, fix some typos.
mjl [Sat, 29 Oct 2005 17:04:10 +0000 (17:04 +0000)]
Correct typos.
rillig [Tue, 18 Oct 2005 20:13:04 +0000 (20:13 +0000)]
Removed the unnecessary #include <ctype.h>.
rpaulo [Wed, 12 Oct 2005 15:33:41 +0000 (15:33 +0000)]
Fix two lines which were broken by previous commit. Noticed by Thomas
Klausner.
rpaulo [Wed, 12 Oct 2005 15:14:27 +0000 (15:14 +0000)]
misc/31566: Jaap Boender: update African and Asian capitals to the
current situation.
rillig [Sat, 8 Oct 2005 18:18:18 +0000 (18:18 +0000)]
Added an empty line to conform to KNF.
wiz [Thu, 15 Sep 2005 02:10:37 +0000 (02:10 +0000)]
Drop trailing whitespace.
wiz [Thu, 15 Sep 2005 02:09:41 +0000 (02:09 +0000)]
Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.
perry [Sun, 14 Aug 2005 21:19:35 +0000 (21:19 +0000)]
Sulfur|Sulphur -> Sul[f|ph]ur
perry [Sun, 14 Aug 2005 21:17:37 +0000 (21:17 +0000)]
Sulfur -> Sulfur | Sulphur
perry [Sun, 14 Aug 2005 20:31:34 +0000 (20:31 +0000)]
er, forgot the C{a}esium change in the last
perry [Sun, 14 Aug 2005 20:28:25 +0000 (20:28 +0000)]
1) Update atomic weights.
The weights here are taken from
http://www.iupac.org/publications/pac/2003/7508/7508x1107.html
and have been rounded to four significant figures in all cases.
In the case of elements that have no isotopes stable enough for
reasonable measurement, numbers have been updated from Zumdahl,
"Chemistry", Fifth edition and are presented (as before) in parentheses.
2) Cesium is now C{a}esium
3) A number of new elements have been added at the end of the periodic
table.
perry [Sun, 14 Aug 2005 19:34:50 +0000 (19:34 +0000)]
Aluminum -> Alumin{i}um
Aluminium is really the official name, but doing it this way allows
entry of either answer.
perry [Sun, 14 Aug 2005 17:45:17 +0000 (17:45 +0000)]
Sulphur -> Sulfur
Although the traditional spelling in commonwealth countries is
"Sulphur", the official IUPAC name of the element is "Sulfur", and
even the Royal Society of Chemistry now spells it "Sulfur".
rpaulo [Wed, 10 Aug 2005 19:21:21 +0000 (19:21 +0000)]
Added a missing '-' in score list output.
rpaulo [Wed, 10 Aug 2005 17:53:28 +0000 (17:53 +0000)]
Pass lint(1).
rpaulo [Wed, 10 Aug 2005 17:52:56 +0000 (17:52 +0000)]
Enable WARNS=3.
rpaulo [Wed, 10 Aug 2005 16:10:51 +0000 (16:10 +0000)]
Fixed an output bug where a new-line was added due the usage of puts(3).
rpaulo [Wed, 10 Aug 2005 14:02:26 +0000 (14:02 +0000)]
Pass lint(1).
rpaulo [Wed, 10 Aug 2005 14:02:10 +0000 (14:02 +0000)]
Enable WARNS=3.
christos [Tue, 9 Aug 2005 15:17:41 +0000 (15:17 +0000)]
add a new style cast to memcpy.
rpaulo [Tue, 9 Aug 2005 09:15:23 +0000 (09:15 +0000)]
Enable WARNS=3 and pass lint(1).
ok christos@
christos [Tue, 9 Aug 2005 02:38:32 +0000 (02:38 +0000)]
Pass WARNS=3
cjs [Sat, 23 Jul 2005 08:01:38 +0000 (08:01 +0000)]
Comment from Al.
rillig [Fri, 22 Jul 2005 11:56:50 +0000 (11:56 +0000)]
Aligned the usage message from the program with the one mentioned in the
man page.
rillig [Fri, 22 Jul 2005 11:52:23 +0000 (11:52 +0000)]
- caesar(6) is not a SETGIDGAME, so we don't need to revoke any privileges.
- replaced direct POSIX read/write with stdio, which made the code simpler.
- added even more error checking.
- restructured the code to make each function fit on one screen
(well, except one).
- now the code reflects the intended purpose of the program.
- return 0 instead of EXIT_FAILURE on success.
wiz [Tue, 5 Jul 2005 08:48:47 +0000 (08:48 +0000)]
Quote macro.
jdc [Sat, 2 Jul 2005 15:48:03 +0000 (15:48 +0000)]
Tidy up curses state when we quit, instead of just doing exit().
wiz [Sat, 2 Jul 2005 10:46:21 +0000 (10:46 +0000)]
Sort sections. Use mdoc macros. Reformat.
wiz [Sat, 2 Jul 2005 10:40:50 +0000 (10:40 +0000)]
Removing trailing spaces.
jmc [Sat, 2 Jul 2005 08:35:29 +0000 (08:35 +0000)]
KNF conversion
jmc [Sat, 2 Jul 2005 08:32:32 +0000 (08:32 +0000)]
KNF and WARNS=3
jmc [Fri, 1 Jul 2005 16:50:55 +0000 (16:50 +0000)]
KNF and WARNS=3
jmc [Fri, 1 Jul 2005 16:38:24 +0000 (16:38 +0000)]
KNF and WARNS=3
peter [Fri, 1 Jul 2005 14:21:49 +0000 (14:21 +0000)]
Remove the -t flag from the usage.
jmc [Fri, 1 Jul 2005 06:04:46 +0000 (06:04 +0000)]
KNF and WARNS=3
jmc [Fri, 1 Jul 2005 01:13:05 +0000 (01:13 +0000)]
Whitespace fix
jmc [Fri, 1 Jul 2005 01:12:39 +0000 (01:12 +0000)]
KNF and WARNS=3 fixes
jmc [Fri, 1 Jul 2005 00:48:34 +0000 (00:48 +0000)]
KNF and WARNS=3 fixes
jmc [Fri, 1 Jul 2005 00:03:36 +0000 (00:03 +0000)]
KNF and WARNS=3
perry [Thu, 30 Jun 2005 15:35:17 +0000 (15:35 +0000)]
add ching, and also break up the SUBDIR line a bit more to make future
additions easier.
now if we could only get "dungeon"...