summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename com#.c to command#.c to avoid conflicts with those file basenamestv2001-10-198-16/+17
| | | on certain Microsoft host OS's.
* va_{start,end} audit:wiz2001-09-242-6/+7
| | | | | | | | | | | | | 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.
* if we're going to quote the movie, let's at least get it *right*lukem2001-09-191-3/+6
|
* Give initiali[sz]e all the "i"s it deserves.wiz2001-09-182-6/+6
|
* Spell 'occurred' with two 'r's.wiz2001-09-162-4/+4
|
* More quote cleanup. Remove a fortune that also is in -o.mjl2001-09-012-107/+125
| | | Add a couple of fortunes I had lying around.
* Some more quotes removed. Corrected errors noticed by Andrew Brownmjl2001-09-011-110/+108
| | | <atatat@atatdot.net>.
* Fix typos and spelos. Add and correct some attributions. Add amjl2001-09-011-1072/+997
| | | | | couple of fortunes. Canonize quotes. Remove duplicate fortunes. Correct author names. Mostly from FreeBSD and OpenBSD.
* Always lseek back to the beginning of the file in post(), which may bejsm2001-08-311-3/+5
| | | | called twice in a game if a bonus occurs. Patch from Malcolm Parsons <malcolm@ivywell.screaming.net>.
* Ensure that the random hop delta does make the cave connected. Basedjsm2001-08-311-4/+23
| | | on bug report and patch from <afghan@afghanhound.org.uk>.
* Keep track of visible worm length. If nowhere is available for thejsm2001-08-311-2/+13
| | | | new prize, have the player win rather than hanging. Bug reported by Malcolm Parsons <malcolm@ivywell.screaming.net>.
* Match quotes.simonb2001-08-311-1/+1
|
* Remove duplicate fortunes.mjl2001-08-311-7/+0
|
* Check for screen sizes that are too small. Fix off-by-one error injsm2001-08-301-4/+13
| | | | trying to place the prize. Position the score appropriately for screens that may not be 80 columns wide.
* Remove documented bug with long worm lengths, and improve handling ofjsm2001-08-292-15/+18
| | | non-standard screen sizes. From OpenBSD.
* Include <time.h> for declarations the Single Unix Specification saysjsm2001-08-293-5/+8
| | | are there but not in <sys/time.h>.
* Ensure trailing newline is present on error and warning messages (lostjsm2001-08-292-6/+6
| | | in previous conversion from <err.h> functions to ISO C ones).
* "wierd" is weird.wiz2001-08-201-1/+1
|
* Change -a to mean all files, as opposed to just a few more files.atatat2001-08-151-43/+71
| | | | | | | | | | | | | | | | Modify the regex handling so that we can match fortunes in rot13'ed databases (rot13 the pattern and maintain a second compiled pattern) and rot13 the rot13'ed fortune before output. Move the rot13 code to a function since it's now used in three places instead of just one. Initialize posfile in one place since it appears to get used without being initialized when using debugging. Make a *slight* improvement to the random seeding by squaring the pid and then xor'ing against the current time, since just xor'ing the time with the pid will not change if they both advance by one from "odd" to "even".
* Fix pasto. From FreeBSD.wiz2001-08-091-2/+2
|
* Fix for FreeBSD/13278, from FreeBSD:wiz2001-08-091-3/+3
| | | | | | | When a game ends that makes the top 10, the function insert_score in score.c is called to make the new score file. But the case for KFIRE (killed by fire) incorrectly uses strcpy instead of strcat (all the other cases use strcat). This puts the string in the wrong place and corrupts the score file.
* seperate -> separatewiz2001-07-225-13/+13
|
* Formatting improvements (from OpenBSD)wiz2001-07-111-4/+7
|
* Typo fixes. From OpenBSD.wiz2001-07-102-4/+4
|
* s/Upon you knees if you appear/Upon your knees if you appear/mason2001-06-242-2/+2
| | | Confirmed against <http://www.alcyone.com/max/lit/devils/>.
* `existent', not `existant'wiz2001-06-192-6/+6
|
* receive, not recievewiz2001-06-124-9/+9
|
* fix building of phantasia ($FILES dependency on $PROG broke things)lukem2001-06-061-2/+2
|
* fix building of cards.pcklukem2001-06-061-2/+2
|
* Remove unnecessary quotes in Dt.wiz2001-06-051-2/+2
|
* No argument for .Os.wiz2001-06-051-2/+2
|
* Overhaul error handling and reporting for regular expressions.christos2001-06-041-15/+22
| | | | | Provide a RE_OK() macro that tests if the current compiled pattern works and a RE_ERROR() macro that prints what went wrong as well as the particular RE implementation can handle.
* Bail out when regex pattern is invalid if using regcomp or regcmp.aymeric2001-06-041-7/+7
| | | | | Remove trailing \n's also. Addresses PR#13109
* don't deref -1.christos2001-06-021-3/+3
|
* Its is Dr. Elizabeth Dehner, not Dehaver.abs2001-05-021-1/+1
| | | From the vast and bewildering trek trivia of norm@sandbox.org.uk
* Spell occurred correctly.simonb2001-04-251-3/+3
|
* NetBSD: You choose the hardware, we'll bring the OS.pooka2001-04-211-33/+35
| | | | | | from David Brownlee on netbsd-advocacy While I'm in here, sort the file using tools/do_sort to get the recently added fortunes into order.
* Some entries from Richard Rauch, posted on netbsd-advocacy.hubertf2001-04-211-0/+8
|
* Negative exit code cleanup: Replace exit(-x) with exit(x).wiz2001-04-062-6/+6
| | | As seen on tech-userlevel.
* mdoc'ify.wiz2001-04-042-276/+301
|
* Whitespace and/or punctuation fixes.wiz2001-04-024-26/+26
|
* mdoc'ify, and clean up in the process.wiz2001-04-021-51/+62
|
* Whitespace and/or punctuation fixes.wiz2001-04-0216-162/+162
|
* Convert to mdoc. Still needs tbl for two tables that have more than 6wiz2001-04-021-640/+570
| | | columns, but looks much nicer now.
* Build the data files in the obj/compile directory and install them withsimonb2001-03-272-34/+29
| | | | FILES and FILESDIR. "Problem" reported by David Querbach on current-users.
* Make mostly gcc -W clean, and other cleanup:jsm2001-03-2552-330/+339
| | | | | | | | | | | | 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 problem noted in PR 6649 (trailing whitespace on .Nm)garbled2001-03-071-2/+2
|
* convert to use getprogname()cgd2001-02-192-10/+7
|
* kill dupepooka2001-02-101-4/+0
|
* Fix simple typo. From bdc@world.std.com in PR misc/12150.simonb2001-02-071-1/+1
|