Age | Commit message (Collapse) | Author |
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
feature of the English language, so revert that part of the previous.
Requested by jmc@.
|
|
resolve contractions (found with textproc/igor(1)).
Work done by Kaspars at Bankovskis dot net
during the EuroBSDCon 2014 documentation tutorial.
Very minor addition of a few more missing .An macros by myself.
|
|
found with the new mandoc(1) MANDOCERR_AN_MISSING warning;
no text changes
|
|
|
|
caesar instead of a symlink.
agreed by deraadt, sobrado, guenther
|
|
|
|
|
|
|
|
ok mlarkin
|
|
code that catches lots of signals, and then re-enters curses... before
exiting.
|
|
Issue reported by David Crosby <dave at dafyddcrosby dot com> on tech@.
ok miod@
|
|
|
|
|
|
* get_line() always returns the same non-NULL pointer,
so testing the return value is useless.
* Garbage collect the unused variable *line.
* Check for end-of-buffer before parsing the next word instead of after it.
* Skip strlen() when the length has been measured three lines before anyway.
* Do not initialize local variables over and over again.
feedback and ok pjanzen@
|
|
When entering card names, you can use multiple words (like KING OF SPADES).
If you entered more than one consecutive blank character between words,
the function incard() took that as end-of-string and ignored the rest.
Fix this by dropping duplicate blanks up front, in get_line().
Patch simplified by me, ok pjanzen@.
While here, use beep(3) in an adjacent line instead of manually fiddling
with control characters, suggested by pjanzen@.
|
|
zap an old workaround needed to insert a space - it's now useless (was
actually generating a second space);
original diff from pjanzen
|
|
ok cmp(1)
|
|
stopped working because the third letter remained in the buffer,
incard() skipped the NUL and used the old garbage.
Fix this bug reported by pjanzen@, but in a simpler way than he
suggested, by just clearing any trailing garbage from the buffer.
ok pjanzen@
|
|
1. Style: Don't use variables as format strings.
NetBSD rev. 1.26 (May 23, 2011) joerg@NetBSD via maintainer pjanzen@.
2. Style: Avoid needless pointer arithmetics.
NetBSD rev. 1.27 (Oct 13, 2012) dholland@NetBSD via pjanzen@,
who also applied some KNF to the indentation while here.
3. End curses before printing fatal error messages; from pjanzen@.
|
|
NetBSD rev. 1.16 (Oct 13, 2012) by dholland@NetBSD via maintainer pjanzen@.
|
|
While here, add .An (author name) macros.
|
|
so extend the Valhalla Rampage to where it really matters.
Tedu 118 lines of dead code containing 77 dead magic numbers,
rotting in the tree since June 24, 2001.
Spotted by and ok jsg@, ok sthen@.
|
|
|
|
- new sentence, new line
- no need to quote Sh lines, or Pa args
|
|
|
|
Delete casts to char* of arguments to bwrite() and free()
|
|
|
|
Declare play() and pl_main() as __dead, to solve the original problem
|
|
|
|
From: Joe Marcus Clarke
|
|
when converting this page to mdoc(7) in revision 1.4;
noticed by Jan Stary <hans at stare dot cz>
|
|
* add missing .An
* do not use .nf and .fi in mdoc(7) code
* avoid bare TAB outside literal context
* remove pointless .Ss
from Jan Stary <hans at stare dot cz>, tweaked by me
|
|
Start with the cursor on the worm's head.
ok millert
|
|
Use strtonum() and error out on an unacceptable length argument rather than
reverting to default values; document maximum initial length limit.
started by a diff From: Jan Stary, who requested we document default behaviour
ok millert
|
|
|
|
|
|
|
|
not used in any cases.
ok deraadt@, guenther@, millert@
|
|
time(0). OK guenther@
|
|
OK deraadt@
|
|
|
|
|
|
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
|
|
tweaks and ok millert@, ok deraadt@
|
|
Switch seeding from srand() to srandom(), corresponding to the change
in random number generator from rand() to random() fifteen years ago.
ok pjanzen@ bluhm@ millert@
|
|
suggestions and ok millert@
|
|
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.
ok jung@ millert@ krw@
|