]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
18 years agoread config more strictly, from Maximillian Dornseif
dan [Thu, 25 May 2006 07:11:54 +0000 (07:11 +0000)]
read config more strictly, from Maximillian Dornseif

18 years agodon't try to switch a char and have a case of EOF - use an int.
mrg [Thu, 18 May 2006 18:42:59 +0000 (18:42 +0000)]
don't try to switch a char and have a case of EOF - use an int.

18 years agoRemove dup Hitler fortune. One of the two fortunes I moved yesterday, was
christos [Wed, 17 May 2006 14:47:58 +0000 (14:47 +0000)]
Remove dup Hitler fortune. One of the two fortunes I moved yesterday, was
already in the offensive set. From a NetBSD fan who prefers to be anonymous.

18 years agoPR/33495: Daniel Weiss: Offensive quote in netbsd fortune package
christos [Tue, 16 May 2006 20:13:50 +0000 (20:13 +0000)]
PR/33495: Daniel Weiss: Offensive quote in netbsd fortune package
- Move 2 offensive to women Adolf Hitler quotes to fortune2-o
- s/Adolph/Adolf/

18 years agoAdd a virtual destructor to avoid "future ABI issues". I love c++.
christos [Sun, 14 May 2006 06:38:04 +0000 (06:38 +0000)]
Add a virtual destructor to avoid "future ABI issues". I love c++.

18 years agoadd virtual destructors so that g++ shuts up.
christos [Sun, 14 May 2006 03:21:52 +0000 (03:21 +0000)]
add virtual destructors so that g++ shuts up.

18 years agoDon't use iostream just for the usage message. Use stdio instead.
christos [Sun, 14 May 2006 03:21:23 +0000 (03:21 +0000)]
Don't use iostream just for the usage message. Use stdio instead.

18 years agoXXX: GCC uninitialized
christos [Sun, 14 May 2006 03:15:50 +0000 (03:15 +0000)]
XXX: GCC uninitialized

18 years agoCoverity CID 3382: Fix memory leak.
christos [Sat, 13 May 2006 22:45:11 +0000 (22:45 +0000)]
Coverity CID 3382: Fix memory leak.

18 years agoCoverity CID 3383: Fix memory leak.
christos [Sat, 13 May 2006 22:43:02 +0000 (22:43 +0000)]
Coverity CID 3383: Fix memory leak.

18 years agoCoverity CID 3508: Fix file leak.
christos [Sat, 13 May 2006 22:29:53 +0000 (22:29 +0000)]
Coverity CID 3508: Fix file leak.

18 years agoCoverity CID 3269: Fix memory leak.
christos [Sat, 13 May 2006 22:28:04 +0000 (22:28 +0000)]
Coverity CID 3269: Fix memory leak.

18 years agosprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
mrg [Thu, 11 May 2006 23:16:28 +0000 (23:16 +0000)]
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.

18 years agolrint() -> larn_lrint().
mrg [Thu, 11 May 2006 10:23:24 +0000 (10:23 +0000)]
lrint() -> larn_lrint().

18 years agoend the argument list to exec*(3) with a NULL instead of a bare '0', as
mrg [Thu, 11 May 2006 00:22:52 +0000 (00:22 +0000)]
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.

18 years agoUC, PC and BC are provided my libtermcap, don't duplicate them.
mrg [Thu, 11 May 2006 00:18:31 +0000 (00:18 +0000)]
UC, PC and BC are provided my libtermcap, don't duplicate them.

18 years agoavoid a pointer sign difference.
mrg [Thu, 11 May 2006 00:17:07 +0000 (00:17 +0000)]
avoid a pointer sign difference.

18 years agochange (mostly) int to socklen_t. GCC 4 doesn't like that int and
mrg [Tue, 9 May 2006 20:18:05 +0000 (20:18 +0000)]
change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

18 years agoCredit Alan Perlis for ``give him a lollipop'' programming language quote.
groo [Wed, 26 Apr 2006 00:52:21 +0000 (00:52 +0000)]
Credit Alan Perlis for ``give him a lollipop'' programming language quote.
Hat tip: Jerry Leichter.

18 years agoCoverity CID 3032: Prevent double free: Next to the call of page_more()
christos [Mon, 24 Apr 2006 20:08:54 +0000 (20:08 +0000)]
Coverity CID 3032: Prevent double free: Next to the call of page_more()
there is a comment saying /* does fclose */, but the next line calls
fclose(fp);. Go figure.

18 years agoIt's "its."
snj [Mon, 24 Apr 2006 19:00:29 +0000 (19:00 +0000)]
It's "its."

18 years agoIt's "its."
snj [Mon, 24 Apr 2006 18:00:53 +0000 (18:00 +0000)]
It's "its."

18 years agofix buffer overflow (CVE-2006-1744), from Debian
drochner [Thu, 20 Apr 2006 10:57:26 +0000 (10:57 +0000)]
fix buffer overflow (CVE-2006-1744), from Debian

18 years agoGrammar nit. Never mind that it's still not true.
groo [Thu, 6 Apr 2006 19:47:23 +0000 (19:47 +0000)]
Grammar nit.  Never mind that it's still not true.

18 years agoCoverity CID 2788: If no room gets returned, don't try to place a monster.
christos [Sun, 2 Apr 2006 00:13:29 +0000 (00:13 +0000)]
Coverity CID 2788: If no room gets returned, don't try to place a monster.

18 years agoCoverity CID 2791: Fix file pointer leak.
christos [Sun, 2 Apr 2006 00:08:12 +0000 (00:08 +0000)]
Coverity CID 2791: Fix file pointer leak.

18 years agoCoverity CID 2452: possible negative array index; CID 1518 and CID 1517: possible...
jnemeth [Thu, 30 Mar 2006 05:04:22 +0000 (05:04 +0000)]
Coverity CID 2452: possible negative array index; CID 1518 and CID 1517: possible overrun of static array

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.

19 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.

19 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.

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

19 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.

19 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.