dholland
25e9926383
String buffer cleanup. sprintf bad.
2009-03-14 18:32:47 +00:00
dholland
1bb89ee28f
Don't use char for random state variables; use int or bool.
2009-03-14 17:10:01 +00:00
dholland
265bf6cfdf
sprintf -> snprintf
2009-03-09 04:38:39 +00:00
dholland
6b7874a086
Move HISTORY to proper place.
2009-03-02 10:16:54 +00:00
dholland
442e8c0016
Edit. Sync with reality, at least partway. Bump date.
2009-03-02 10:14:41 +00:00
wiz
a14b6c39ff
Sort options. End sentence with a dot.
2009-03-02 09:39:10 +00:00
dholland
3a16d1fa6d
mdocify. Partly merged from OpenBSD. Not by any means perfect yet.
2009-03-02 09:23:57 +00:00
dholland
f521abdfac
More fixes from OpenBSD: use err instead of perror, don't hork on EOF
...
during the initial setup questions.
2009-03-02 07:33:30 +00:00
dholland
53cddab9f9
Check for failure of fgets when reading the captain's name, and don't
...
allow it to be empty. From OpenBSD.
2009-03-02 07:21:56 +00:00
dholland
51cc47ce79
Use errx() to send fatal error messages. From OpenBSD.
2009-03-02 07:17:24 +00:00
dholland
ffb1e863de
Use errx/warnx instead of printing to stderr. From OpenBSD.
2009-03-02 06:54:01 +00:00
dholland
96e08ad443
Use err(3) and errx(3), not perror and fprintf to stderr. From OpenBSD.
2009-03-02 06:44:22 +00:00
dholland
da767c0864
Braces around a nested if, for clarity; suggested by diffing against OpenBSD.
2009-03-02 06:43:53 +00:00
lukem
2fe2731d3f
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 00:52:39 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
dholland
d4f48e67da
Make the default WARNS for games 4. The only game that needs to set WARNS
...
to anything else now is rogue, so clear WARNS from the other makefiles.
2008-01-28 07:03:58 +00:00
dholland
a627b0395f
Build with WARNS=4. Sort out the game's shadowing of its own variables,
...
which fixes at least one bug.
2008-01-28 01:58:01 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
mrg
06b50ed8b9
don't try to switch a char and have a case of EOF - use an int.
2006-05-18 18:42:59 +00:00
drochner
d8da09bdaf
fix buffer overflow (CVE-2006-1744), from Debian
2006-04-20 10:57:26 +00:00
christos
2197ff9156
Coverity CID 980: Prevent an impossible NULL point deref.
2006-03-19 00:41:46 +00:00
abs
a3edf3e145
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
2006-03-18 01:43:52 +00:00
wiz
d9f5a9df01
Use standard AUTHORS section header. From YOMURA Masanori in private mail
...
Sort sections if necessary. Use more/better markup.
2005-09-15 02:09:41 +00:00
dsl
49f7d8a9b1
Add (unsigned char) cast to ctype functions
2004-11-05 21:30:31 +00:00
jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
jsm
5c6ba47786
Use standard C abs function rather than local macro.
2004-02-08 00:32:48 +00:00
jsm
716c7169f3
Include <sys/stat.h>.
2004-01-27 20:27:59 +00:00
jsm
8f5e2162b1
Include <sys/types.h>.
2004-01-27 20:27:29 +00:00
jsm
a5f914a25a
Use int for wait status.
2004-01-27 20:23:36 +00:00
agc
e5aeb4ea46
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
wiz
8ad24861a6
PDP-11 instead of PDP 11. Igor Sobrado in PR 19678.
2003-03-30 20:53:30 +00:00
wiz
904b6b9402
Mdoc nits -- unneeded ".
2002-09-26 16:33:53 +00:00
wiz
875690e96c
Ispell.
2002-09-26 16:29:25 +00:00
wiz
0d22e30cd0
New sentences begin on new lines.
...
Patch from Richard Elz, slightly improved by yours truly.
2002-09-26 16:12:39 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
blymn
b9c3526a19
Changed deprecated curses call to new equivalent.
2001-12-06 12:21:00 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
jsm
312e8e64e5
Include <time.h> for declarations the Single Unix Specification says
...
are there but not in <sys/time.h>.
2001-08-29 18:23:44 +00:00
wiz
834bb1b3ab
Whitespace and/or punctuation fixes.
2001-04-02 22:42:37 +00:00
christos
dc6488eb8e
remove redundant decls.
2001-02-05 01:10:08 +00:00
cgd
bcc8ec9959
include stdlib.h for prototypes (typically for exit()).
2001-01-16 02:44:43 +00:00
itojun
7fde9b10c9
need string.h for prototype (checked with alpha)
2001-01-04 06:33:18 +00:00
jwise
a5f75468c7
Normalize signature of ship handling functions -- struct ship * from and
...
struct ship * to are now always the first two args.
2001-01-04 06:16:51 +00:00
jwise
d62e34ecca
Various stylistic nits.
2001-01-04 05:34:56 +00:00
jwise
cf3f63cd97
Use License templates from localsrc for license on new files.
2001-01-04 05:06:15 +00:00
jwise
9baf035b4e
Break out curses display-related globals into a new header file, so that
...
<curses.h> doesn't have to be included all over the place.
2001-01-04 04:41:41 +00:00
jwise
61a39e0b38
More rationalization of include files:
...
a.) Don't include a zillion system headers from "extern.h" (actually, don't
include any).
b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't
have to be pulled in everywhere (it's only used in two places).
The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
2001-01-04 03:51:23 +00:00
jwise
aac077fce8
Rationalize inclusion of header files: cut down on `include everything
...
everywhere' a little (more to go), and as per KNF, local includes after
system includes.
2001-01-04 03:21:16 +00:00
jwise
43894be666
Second half of static-ization of local funcs.
2001-01-04 02:43:32 +00:00
jwise
d5c5fed0c7
G/C undocumented and unimplemented `-D' (debug) option.
2001-01-04 01:56:27 +00:00