- turn a strcpy into a strlcpy to avoid overflow
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 27 Jul 2004 12:51:03 +0000 (12:51 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 27 Jul 2004 12:51:03 +0000 (12:51 +0000)
commit2d01cb3b4393af86a313b3bf43876c40431a9196
treea19f98ae7d84bc1c65a865f3f7719e01c71575db
parentdc77986a91391fc08d164df718491f60541412bc
- turn a strcpy into a strlcpy to avoid overflow
- if the byte string is too long, use errx, not err
- abort via call to usage(), if argument of 'W' doesn't contain ':'

Obtained-from: FreeBSD
usr.sbin/raycontrol/raycontrol.c