summaryrefslogtreecommitdiffstats
path: root/rogue
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make moredholland2008-01-1424-917/+634
| | | | things file-static. Other minor tidyups, and fix a couple minor bugs found along the way.
* Whitespace/KNF nits.dholland2008-01-1422-195/+198
|
* Comprehensive (or at least extensive) string handling cleanup for rogue.dholland2007-12-2721-787/+953
| | | | | | | | This patch dates (mostly) back to 2002; the critical parts of it were handled back then by security-officer. As far as I know, there's nothing exploitable fixed herein. A slightly earlier version of this patch was reviewed by Christian Biere when I filed it as PR 34750.
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-5/+5
|
* XXX: GCC uninitializedchristos2006-05-142-6/+6
|
* It's "its."snj2006-04-241-3/+3
|
* Coverity CID 2788: If no room gets returned, don't try to place a monster.christos2006-04-021-3/+3
|
* Coverity CID 2452: possible negative array index; CID 1518 and CID 1517: ↵jnemeth2006-03-301-2/+5
| | | | possible overrun of static array
* Coverity CID 1288: possible negative array indexjnemeth2006-03-301-2/+4
|
* Coverity CID 993: dereference of NULL pointerjnemeth2006-03-301-2/+3
|
* Coverity CID 1293: not checking for an error returnjnemeth2006-03-301-2/+4
|
* Coverity CID 1287: not checking for error returnjnemeth2006-03-301-2/+4
|
* Call fclose() appropriately if there is a problem with the save file.abs2006-03-171-2/+4
| | | Coverty CID 2063
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-6/+6
| | | Sort sections if necessary. Use more/better markup.
* Change marker from "pmppc" to "powerpc" because a NetBSD-macppc buildtron2005-06-091-3/+3
| | | is also affected.
* Add an initialization to placate -Wuninitialized.he2005-06-091-2/+4
| | | Marked with XXXGCC for pmppc (found while compiling for it).
* Cast last argument of execl to (char *).jsm2005-02-151-3/+3
| | | Reviewed by <hubertf>.
* Avoid arrays of incomplete types (required to build with GCC 4).jsm2005-02-151-2/+2
| | | Reviewed by <hubertf>.
* Uppercase CPU, plural is CPUs.wiz2004-02-131-2/+2
|
* Remove uses of __P.jsm2004-01-272-296/+296
|
* Don't use -fwritable-strings. Add one more const.jsm2004-01-012-4/+4
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0726-178/+74
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Rename a large chunk of the make(1) variables which refer to alukem2003-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
* Drop a trailing dot. From jmc@openbsd.wiz2003-04-261-2/+2
|
* The Double-Semi-Colon Police.simonb2003-01-201-3/+3
|
* Add ${MACROS} to ${ROFF} usage to make output readablepooka2003-01-051-2/+2
| | | from jbernard@mines.edu in misc/19685
* - use correctly bounded strings when reloading a saved game. in particular,mrg2002-10-014-27/+32
| | | | | | | do not let the save game file "string length" exceed the amount of space supplied. as noted by <stanojr@iserver.sk> on bugtraq. - minor KNF. tested by simonb.
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-11/+8
|
* New sentences begin on new lines.wiz2002-09-261-7/+10
| | | Patch from Richard Elz, slightly improved by yours truly.
* Make "rogue" build with "WARNS=2". The necessary patches were suppliedtron2002-07-074-16/+17
| | | by David A. Holland in PR bin/17498.
* Change deprecated curses call to new equivalent.blymn2001-12-061-3/+3
|
* Fix pasto. From FreeBSD.wiz2001-08-091-2/+2
|
* Fix for FreeBSD/13278, from FreeBSD:wiz2001-08-091-3/+3
| | | | | | | When a game ends that makes the top 10, the function insert_score in score.c is called to make the new score file. But the case for KFIRE (killed by fire) incorrectly uses strcpy instead of strcat (all the other cases use strcat). This puts the string in the wrong place and corrupts the score file.
* remove duplicate declschristos2001-02-051-5/+1
|
* printf() pedant - do not pass variable alone, use %s.itojun2000-07-101-3/+3
| | | idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+3
|
* Fix doubled 'the'.soren2000-03-131-2/+2
|
* Fix -Wsign-compare warnings.jsm1999-09-181-4/+4
|
* Fix buffer overrun in rogue.jsm1999-09-131-6/+14
|
* Remove rogue's old and bit-rotten cut-down version of curses.jsm1999-09-134-835/+8
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-124-11/+30
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Check for failure of malloc() and calloc() at various places in the games.jsm1999-09-091-2/+6
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-082-8/+8
| | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* s/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world.abs1999-04-051-2/+2
|
* constify, per PR 6148hubertf1998-11-1020-176/+181
|
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-6/+6
|
* fix prototype, per PR#5867hubertf1998-09-111-2/+3
|
* fix prototypes, per PR#5867hubertf1998-09-112-4/+8
|
* fix prototype of mon_sees(), per PR#5867hubertf1998-09-111-2/+3
|
* const poisoning.mycroft1998-07-273-8/+9
|