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
christos
dd3fe9b2dc
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.
2006-03-21 17:14:15 +00:00
christos
44fa0e017a
Coverity CID 1195: Check for possible negative index.
2006-03-18 23:33:38 +00:00
christos
8319a6a7da
Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.
2006-03-18 23:31:19 +00:00
jmc
243d04ef01
KNF and WARNS=3
2005-07-01 00:03:36 +00:00
itojun
b7bf49278d
off-by-one. aaron@openbsd
2003-09-19 10:01:53 +00:00
itojun
8a75cadd4e
off-by-one. aaron@openbsd
2003-09-19 10:01:21 +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
jsm
a5da40c55a
Use err(1, NULL) and warn(NULL) for `out of memory' error messages.
2000-01-09 17:17:19 +00:00
hubertf
08ab0f321a
The game adventure(6) handles EOF on standard input rather
...
ungracefully. The patch, derived from OpenBSD, improves this
handling.
Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
1999-02-10 00:11:28 +00:00
hubertf
006cc8ac96
return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)
1998-09-14 09:29:08 +00:00
hubertf
878ef9cb13
check for malloc failures (PR#6136 by Joseph Myers <jsm28@cam.ac.uk>)
1998-09-13 15:24:09 +00:00
hubertf
4e1357c739
constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
1998-09-13 00:07:24 +00:00
hubertf
d5ad059d0d
Remove unused function and unnecessary prototypes, as per PR 6050 by
...
Joseph Myers <jsm28@cam.ac.uk>
1998-08-29 22:40:07 +00:00
lukem
84f80fd691
KNFify
1997-10-11 01:53:21 +00:00
lukem
434abd72aa
deprecate register, fixup .Nm usage
1997-10-10 11:59:26 +00:00
christos
690bee1083
PR/3964: Eric Fischer: Remove dependencies to traditional cpp...
...
While I was there add WARNS?= too.
1997-08-11 14:06:10 +00:00
cgd
c4816c32b3
Various changes to make games compile w/o warnings on the alpha:
...
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd
43b952514b
clean up RCS ids
1995-03-21 12:04:53 +00:00
jtc
107c0a28c5
adventure(6), from 44lite
1994-10-21 20:51:44 +00:00