]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
18 years agoCoverity CID 1288: possible negative array index
jnemeth [Thu, 30 Mar 2006 04:41:15 +0000 (04:41 +0000)]
Coverity CID 1288: possible negative array index

18 years agoCoverity CID 993: dereference of NULL pointer
jnemeth [Thu, 30 Mar 2006 04:27:24 +0000 (04:27 +0000)]
Coverity CID 993: dereference of NULL pointer

18 years agoCoverity CID 1293: not checking for an error return
jnemeth [Thu, 30 Mar 2006 04:19:38 +0000 (04:19 +0000)]
Coverity CID 1293: not checking for an error return

18 years agoCoverity CID 1287: not checking for error return
jnemeth [Thu, 30 Mar 2006 04:10:04 +0000 (04:10 +0000)]
Coverity CID 1287: not checking for error return

18 years agoCoverity CID 1327: check for error return
jnemeth [Thu, 30 Mar 2006 01:32:27 +0000 (01:32 +0000)]
Coverity CID 1327: check for error return

18 years agoBah! Compare, don't assign!
jnemeth [Thu, 30 Mar 2006 01:31:13 +0000 (01:31 +0000)]
Bah!  Compare, don't assign!

18 years agoCoverity CID 1328: check for error return
jnemeth [Thu, 30 Mar 2006 01:28:46 +0000 (01:28 +0000)]
Coverity CID 1328: check for error return

18 years agoCoverity CID 1326: check for error return
jnemeth [Thu, 30 Mar 2006 01:25:52 +0000 (01:25 +0000)]
Coverity CID 1326: check for error return

18 years agoFix Coverity issue 891 -- FORWARD_NULL.
jnemeth [Wed, 29 Mar 2006 01:21:07 +0000 (01:21 +0000)]
Fix Coverity issue 891 -- FORWARD_NULL.
Approved by christos@.

18 years agoFix Coverity issues 2366 and 2365 -- REVERSE_INULL.
jnemeth [Wed, 29 Mar 2006 01:19:51 +0000 (01:19 +0000)]
Fix Coverity issues 2366 and 2365 -- REVERSE_INULL.
Approved by Christos@.

18 years agoFix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.
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@.

18 years agoAdd missing parens.
christos [Wed, 22 Mar 2006 15:24:52 +0000 (15:24 +0000)]
Add missing parens.

18 years agoSimplify (Masao Uebayashi)
christos [Wed, 22 Mar 2006 05:03:10 +0000 (05:03 +0000)]
Simplify (Masao Uebayashi)

18 years agoCoverity CID 692: Another && that should be ||. Boy...
christos [Wed, 22 Mar 2006 04:24:14 +0000 (04:24 +0000)]
Coverity CID 692: Another && that should be ||. Boy...

18 years agoCoverity CID 558: && should be obviously ||
christos [Wed, 22 Mar 2006 04:22:05 +0000 (04:22 +0000)]
Coverity CID 558: && should be obviously ||

18 years agoCoverity CID 2735: Remove dead code.
christos [Tue, 21 Mar 2006 20:25:55 +0000 (20:25 +0000)]
Coverity CID 2735: Remove dead code.

18 years agoCoverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
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.

18 years agoremove duplicate #include <stdlib.h>
rtr [Mon, 20 Mar 2006 12:32:21 +0000 (12:32 +0000)]
remove duplicate #include <stdlib.h>

18 years agoNow that we use exit(2), we need to include <stdlib.h> for its definition.
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.

18 years agoinclude <stdlib.h> to get a prototype for exit
christos [Sun, 19 Mar 2006 06:02:50 +0000 (06:02 +0000)]
include <stdlib.h> to get a prototype for exit

18 years agoCoverity CID 1197: Don't pass -1 to close.
christos [Sun, 19 Mar 2006 01:00:35 +0000 (01:00 +0000)]
Coverity CID 1197: Don't pass -1 to close.

18 years agoCoverity CID 1467: Elide static buffer overflow.
christos [Sun, 19 Mar 2006 00:56:12 +0000 (00:56 +0000)]
Coverity CID 1467: Elide static buffer overflow.

18 years agoCoverity CID 868: Fix possible NULL deref (after INFTIM passes :-)
christos [Sun, 19 Mar 2006 00:50:28 +0000 (00:50 +0000)]
Coverity CID 868: Fix possible NULL deref (after INFTIM passes :-)

18 years agoCoverity CID 980: Prevent an impossible NULL point deref.
christos [Sun, 19 Mar 2006 00:41:46 +0000 (00:41 +0000)]
Coverity CID 980: Prevent an impossible NULL point deref.

18 years agoCoverity CID 2073: Fix memory leak.
christos [Sun, 19 Mar 2006 00:37:15 +0000 (00:37 +0000)]
Coverity CID 2073: Fix memory leak.

18 years agoCoverity CID 999: Prevent NULL deref.
christos [Sun, 19 Mar 2006 00:32:18 +0000 (00:32 +0000)]
Coverity CID 999: Prevent NULL deref.

18 years agoCoverity CID 695: Remove impossible condition. This changes the scoring as
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.

18 years agoCoverity CID 998: Possible NULL pointer deref. Actually this was a bug
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.

18 years agofix typo
christos [Sun, 19 Mar 2006 00:18:47 +0000 (00:18 +0000)]
fix typo

18 years agoCoverity CID 1004: Fix NULL deref.
christos [Sun, 19 Mar 2006 00:05:05 +0000 (00:05 +0000)]
Coverity CID 1004: Fix NULL deref.

18 years agoCoverity CID 1005: Fix NULL deref and incorrect variable use.
christos [Sun, 19 Mar 2006 00:03:18 +0000 (00:03 +0000)]
Coverity CID 1005: Fix NULL deref and incorrect variable use.

18 years agoCoverity CID 1443: Prevent static overrun.
christos [Sun, 19 Mar 2006 00:00:19 +0000 (00:00 +0000)]
Coverity CID 1443: Prevent static overrun.

18 years agoCoverity CID 827: Prevent NULL pointer deref.
christos [Sat, 18 Mar 2006 23:54:17 +0000 (23:54 +0000)]
Coverity CID 827: Prevent NULL pointer deref.

18 years agoCoverity CID 1699: Fix memory leaks.
christos [Sat, 18 Mar 2006 23:51:51 +0000 (23:51 +0000)]
Coverity CID 1699: Fix memory leaks.

18 years agoCoverity CID 2544: Fix memory leak.
christos [Sat, 18 Mar 2006 23:44:05 +0000 (23:44 +0000)]
Coverity CID 2544: Fix memory leak.

18 years agoCoverity CID 1786: Close file.
christos [Sat, 18 Mar 2006 23:38:12 +0000 (23:38 +0000)]
Coverity CID 1786: Close file.

18 years agoCoverity CID 570: Remove impossible check.
christos [Sat, 18 Mar 2006 23:35:51 +0000 (23:35 +0000)]
Coverity CID 570: Remove impossible check.

18 years agoCoverity CID 1195: Check for possible negative index.
christos [Sat, 18 Mar 2006 23:33:38 +0000 (23:33 +0000)]
Coverity CID 1195: Check for possible negative index.

18 years agoCoverity CID 777: Fix NULL pointer deref and de-obfuscate code.
christos [Sat, 18 Mar 2006 23:31:19 +0000 (23:31 +0000)]
Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.

18 years agoCoverity CID 1230: Remove spurious close().
christos [Sat, 18 Mar 2006 23:25:30 +0000 (23:25 +0000)]
Coverity CID 1230: Remove spurious close().

18 years agoCoverity CID 1294: Avoid negative variable used as index.
christos [Sat, 18 Mar 2006 23:23:33 +0000 (23:23 +0000)]
Coverity CID 1294: Avoid negative variable used as index.

18 years agoCoverity CID 1295: Don't allow cchose to return a negative number. It is
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.

18 years agofclose() open FILE * even though we are returning to fail anyway.
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

18 years agodon't access out of bounds element of static alloc array.
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.

18 years agoIf none of the boarding parties are set do not fall off the end of the
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

18 years agoadd more "ifdef notdef" around unused sections - addresses Coverity CID 564
abs [Fri, 17 Mar 2006 23:36:38 +0000 (23:36 +0000)]
add more "ifdef notdef" around unused sections - addresses Coverity CID 564

18 years agoAdd a missing bp->b_score not null check - addresses Coverity CID 1003
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

18 years agoif getpwuid() returns null, print out the uid rather than dereferencing
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

18 years agoFix overrun in players[] array. Addresses Coverty CID 1457
abs [Fri, 17 Mar 2006 23:15:02 +0000 (23:15 +0000)]
Fix overrun in players[] array. Addresses Coverty CID 1457

18 years agoIf getpwuid() returns null, its not usually a good idea to dereference
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

18 years agoCall fclose() appropriately if there is a problem with the save file.
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

18 years agoUse MKPRIVATELIB instead of NOLINKLIB/NOMAN/NOPIC/NOLINT.
simonb [Sat, 25 Feb 2006 12:04:23 +0000 (12:04 +0000)]
Use MKPRIVATELIB instead of NOLINKLIB/NOMAN/NOPIC/NOLINT.

18 years agoChange DPADD from LIBTERM (which doesn't exist) and LIBCOMPAT (which it
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).

18 years agoFix typo in the instructions.
wiz [Sat, 25 Feb 2006 02:06:08 +0000 (02:06 +0000)]
Fix typo in the instructions.

18 years agoRemove duplicate and uncredited "Plan for the Improvement of English
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".

18 years agoCorrect The Hitchhiker's Guide to the Galaxy entry about dolphins as per
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.

18 years agomoduli utils moved from games to usr.bin.
elad [Tue, 24 Jan 2006 19:01:45 +0000 (19:01 +0000)]
moduli utils moved from games to usr.bin.

18 years agoRemove qsiefe/qsafe from games. Will be put back in 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.

18 years agoBump date for previous.
wiz [Sun, 22 Jan 2006 21:22:30 +0000 (21:22 +0000)]
Bump date for previous.

18 years agoDrop trailing whitespace. Remove superfluous .br.
wiz [Sun, 22 Jan 2006 00:32:54 +0000 (00:32 +0000)]
Drop trailing whitespace. Remove superfluous .br.

18 years agobetter handle ^d in getinp(), so we dont loop endlessly.
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.

19 years agooops, make this install to /usr/games and not /...
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.

19 years agoDescend to moduli too.
elad [Thu, 19 Jan 2006 23:25:19 +0000 (23:25 +0000)]
Descend to moduli too.

19 years agoAdd qsieve and qsafe, two programs used for generating the moduli file.
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@.

19 years agoFix some minor buglets in wump:
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.

19 years agoApply patch from PR bin/26501 to fix hang in wump if you play too many
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.

19 years agoSimplify error checking.
christos [Sat, 19 Nov 2005 18:01:42 +0000 (18:01 +0000)]
Simplify error checking.

19 years agoReplaced one instance of err() with errx(), as the value of errno might not
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.

19 years agoTypos, duplicate words, consistent formatting.
mjl [Sat, 29 Oct 2005 22:49:36 +0000 (22:49 +0000)]
Typos, duplicate words, consistent formatting.

19 years agoRemove trailing spaces, double spaces between words, fix some typos.
mjl [Sat, 29 Oct 2005 22:35:41 +0000 (22:35 +0000)]
Remove trailing spaces, double spaces between words, fix some typos.

19 years agoCorrect typos.
mjl [Sat, 29 Oct 2005 17:04:10 +0000 (17:04 +0000)]
Correct typos.

19 years agoRemoved the unnecessary #include <ctype.h>.
rillig [Tue, 18 Oct 2005 20:13:04 +0000 (20:13 +0000)]
Removed the unnecessary #include <ctype.h>.

19 years agoFix two lines which were broken by previous commit. Noticed by Thomas
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.

19 years agomisc/31566: Jaap Boender: update African and Asian capitals to the
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.

19 years agoAdded an empty line to conform to KNF.
rillig [Sat, 8 Oct 2005 18:18:18 +0000 (18:18 +0000)]
Added an empty line to conform to KNF.

19 years agoDrop trailing whitespace.
wiz [Thu, 15 Sep 2005 02:10:37 +0000 (02:10 +0000)]
Drop trailing whitespace.

19 years agoUse standard AUTHORS section header. From YOMURA Masanori in private mail
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.

19 years agoSulfur|Sulphur -> Sul[f|ph]ur
perry [Sun, 14 Aug 2005 21:19:35 +0000 (21:19 +0000)]
Sulfur|Sulphur -> Sul[f|ph]ur

19 years agoSulfur -> Sulfur | Sulphur
perry [Sun, 14 Aug 2005 21:17:37 +0000 (21:17 +0000)]
Sulfur -> Sulfur | Sulphur

19 years agoer, forgot the C{a}esium change in the last
perry [Sun, 14 Aug 2005 20:31:34 +0000 (20:31 +0000)]
er, forgot the C{a}esium change in the last

19 years ago1) Update atomic weights.
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.

19 years agoAluminum -> Alumin{i}um
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.

19 years agoSulphur -> Sulfur
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".

19 years agoAdded a missing '-' in score list output.
rpaulo [Wed, 10 Aug 2005 19:21:21 +0000 (19:21 +0000)]
Added a missing '-' in score list output.

19 years agoPass lint(1).
rpaulo [Wed, 10 Aug 2005 17:53:28 +0000 (17:53 +0000)]
Pass lint(1).

19 years agoEnable WARNS=3.
rpaulo [Wed, 10 Aug 2005 17:52:56 +0000 (17:52 +0000)]
Enable WARNS=3.

19 years agoFixed an output bug where a new-line was added due the usage of puts(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).

19 years agoPass lint(1).
rpaulo [Wed, 10 Aug 2005 14:02:26 +0000 (14:02 +0000)]
Pass lint(1).

19 years agoEnable WARNS=3.
rpaulo [Wed, 10 Aug 2005 14:02:10 +0000 (14:02 +0000)]
Enable WARNS=3.

19 years agoadd a new style cast to memcpy.
christos [Tue, 9 Aug 2005 15:17:41 +0000 (15:17 +0000)]
add a new style cast to memcpy.

19 years agoEnable WARNS=3 and pass lint(1).
rpaulo [Tue, 9 Aug 2005 09:15:23 +0000 (09:15 +0000)]
Enable WARNS=3 and pass lint(1).

ok christos@

19 years agoPass WARNS=3
christos [Tue, 9 Aug 2005 02:38:32 +0000 (02:38 +0000)]
Pass WARNS=3

19 years agoComment from Al.
cjs [Sat, 23 Jul 2005 08:01:38 +0000 (08:01 +0000)]
Comment from Al.

19 years agoAligned the usage message from the program with the one mentioned in the
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.

19 years ago- caesar(6) is not a SETGIDGAME, so we don't need to revoke any privileges.
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.

19 years agoQuote macro.
wiz [Tue, 5 Jul 2005 08:48:47 +0000 (08:48 +0000)]
Quote macro.

19 years agoTidy up curses state when we quit, instead of just doing exit().
jdc [Sat, 2 Jul 2005 15:48:03 +0000 (15:48 +0000)]
Tidy up curses state when we quit, instead of just doing exit().

19 years agoSort sections. Use mdoc macros. Reformat.
wiz [Sat, 2 Jul 2005 10:46:21 +0000 (10:46 +0000)]
Sort sections. Use mdoc macros. Reformat.

19 years agoRemoving trailing spaces.
wiz [Sat, 2 Jul 2005 10:40:50 +0000 (10:40 +0000)]
Removing trailing spaces.

19 years agoKNF conversion
jmc [Sat, 2 Jul 2005 08:35:29 +0000 (08:35 +0000)]
KNF conversion