summaryrefslogtreecommitdiffstats
path: root/hack/hack.unix.c
Commit message (Collapse)AuthorAgeFilesLines
* - enlarge buffer to avoid snprintf() truncationmrg2019-02-031-3/+3
|
* reinstate NULL cast by request, where the NULL was being passed as a varargplunky2011-09-011-3/+3
|
* NULL does not need a castplunky2011-08-311-3/+3
|
* Fix up still more casts; use NULL instead of (char *)0.dholland2011-08-061-5/+5
|
* sprinkle staticdholland2009-08-121-5/+8
|
* Fix two serious string-handling bugs (one exploitable, one probablydholland2009-06-291-6/+6
| | | | exploitable) and also add proper checking/paranoia in several other places.
* sprintf -> snprintf, plus some use of strlcpy/strlcat where appropriatedholland2009-06-071-3/+3
| | | XXX: there's still one sprintf left which will take some hacking to expunge.
* ANSIfy function declarations. All object file diffs inspected.dholland2009-06-071-24/+21
|
* Change getdate() to getdatestr() since the former maybe present on systemsginsbach2009-05-061-3/+3
| | | | supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
* Hack is now BSD-licensed. Thanks to Andries Brouwer, Jay Fenlason andjsm2003-04-021-3/+60
| | | | CWI <http://www.cwi.nl/~aeb/games/hack/hack.html>. Via OpenBSD. Addresses part of PR bin/5850.
* Make mostly gcc -W clean, and other cleanup:jsm2001-03-251-5/+5
| | | | | | | | | | | | 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.
* fix redundant decls and nested externs. while I am here change my copyrightchristos2001-02-051-3/+4
| | | to TNF.
* Fix Y2K buffer overflow (from OpenBSD).kristerw1999-04-251-8/+4
|
* WARNsify...christos1997-10-191-191/+236
|
* Removed "extern int errno"; Added #include <errno.h> if not already present.jtc1996-02-061-3/+2
|
* merge with Lite, new RCS id conventions, etc.cgd1995-03-231-1/+1
|
* Add RCS identifiers, remove some completely useless RCS logs and patchkitmycroft1993-08-021-2/+7
| | | headers, and a few other insignificant changes.
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+430