summaryrefslogtreecommitdiff
path: root/games/hack/hack.end.c
AgeCommit message (Collapse)Author
2020-02-07games/hack: Revert the strlcpy(1) change since this changes expected ↵fox
behavior from strncpy(3). Reviewed by: kamil@
2020-02-07games/hack: Fix -Wstringop-truncation warning.fox
Replace strncpy(3) with strlcpy(3). Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
2011-08-06Fix up still more casts; use NULL instead of (char *)0.dholland
2011-08-06Remove more silly casts.dholland
2011-08-06Use the right type for the malloc wrapper function, and don't cast thedholland
return value. (XXX: Except for a pile of allocation macros that produce typed pointer results; there the typechecking of the result assignment is more valuable than the warning if the alloc function isn't declared properly. These macros should go away.)
2010-02-03Userland now builds and uses terminfo instead of termcap.roy
OK: core@, jdc@
2009-08-12sprinkle staticdholland
2009-06-07sprintf -> snprintf, plus some use of strlcpy/strlcat where appropriatedholland
XXX: there's still one sprintf left which will take some hacking to expunge.
2009-06-07ANSIfy function declarations. All object file diffs inspected.dholland
2009-05-06Change getdate() to getdatestr() since the former maybe present on systemsginsbach
supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
2008-01-28Make hack build with WARNS=4.dholland
2007-12-15convert __attribute__s to applicable cdefs.h macrosperry
2006-05-13Coverity CID 3382: Fix memory leak.christos
2003-04-02Hack is now BSD-licensed. Thanks to Andries Brouwer, Jay Fenlason andjsm
CWI <http://www.cwi.nl/~aeb/games/hack/hack.html>. Via OpenBSD. Addresses part of PR bin/5850.
2001-03-25Make mostly gcc -W clean, and other cleanup:jsm
Use const. Add __noreturn__ attributes. Add a __format__ attribute. Add __unused__ attributes. Use symbolic constants for open() and lseek(). Declare types of all function parameters; convert some function definitions to ISO C form. Ensure standard file descriptors are open on startup. Check for errors writing output of makedefs. Avoid duplicate definitions of variables.
1997-10-19WARNsify...christos
1995-03-23merge with Lite, new RCS id conventions, etc.cgd
1993-08-02alloc.cmycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd