summaryrefslogtreecommitdiffstats
path: root/atc/input.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-18/+18
|
* Abolish the foul practice of including every header in existence via adholland2015-06-191-3/+17
| | | single central "include.h". Use only headers that are actually needed.
* Make the list of place types an enumeration. Use unsigned values fordholland2014-03-221-3/+4
| | | place numbers.
* use a more suitable typedholland2014-03-221-3/+4
|
* use more suitable typesdholland2014-03-221-4/+4
|
* Make some things unsigned that should be (why would we need e.g. adholland2014-03-221-25/+29
| | | negative number of airports?) and remove some related bogus casts.
* sprinkle staticdholland2009-08-121-35/+62
|
* sprintf -> snprintfdholland2009-05-261-3/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-16/+16
|
* Input validation, from David A. Holland on #NetBSD-codeelad2006-10-071-6/+18
|
* prevent "stack" overflowjnemeth2006-06-071-2/+3
|
* Pass lint(1).rpaulo2005-08-101-21/+33
|
* KNF and WARNS=3 fixesjmc2005-07-011-87/+64
|
* Cast last argument of execl to (char *).jsm2005-02-151-4/+4
| | | Reviewed by <hubertf>.
* Remove uses of __P.jsm2004-01-271-4/+4
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* comment or delete text after CPP directives.cgd2001-01-161-3/+3
|
* This patch marks unused parameters in atc(6) as such.hubertf1999-07-251-16/+16
| | | Patch submitted in PR 8058 by Joseph Myers <jsm28@cam.ac.uk>
* The patch below improves the security of the game atc(6), by having ithubertf1999-07-171-3/+2
| | | | | | | | | | open the score file at the start and then drop all setgid privileges while keeping a (close-on-exec) file descriptor open to it. In order to allow this the static data files have to be made world readable. In addition a potential buffer overrun with corrupted score files is avoided by more careful use of scanf (note that SCORE_SCANF_FMT is defined alongside the definition of the relevant structure). Submitted in PR 8015 by Joseph Myers <jsm28@cam.ac.uk>
* constify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>hubertf1998-11-101-26/+26
|
* Replace special handling of \r by using ICRNL (PR#6078 by Joseph Myers ↵hubertf1998-09-131-17/+2
| | | | <jsm28@cam.ac.uk>)
* An airplane on a heading of 315, given instruction to turnbriggs1998-07-281-3/+3
| | | right 45 degrees should turn to direction 0, not circle.
* An airplane on a heading of 270, given instruction to turnbriggs1998-07-281-3/+3
| | | right 90 degrees should turn to direction 0, not circle.
* - don't use char as an array indexmrg1998-03-291-16/+16
|
* WARNSifylukem1997-10-101-9/+36
|
* bfunctions -> memfunctionstls1997-01-131-3/+3
|
* Use POSIX signal and tty semantics.mycroft1995-04-271-6/+5
|
* clean up importcgd1995-03-211-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+663