]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix minor buffer problems:
authorWarner Losh <imp@FreeBSD.org>
Fri, 1 Nov 1996 06:29:34 +0000 (06:29 +0000)
committerWarner Losh <imp@FreeBSD.org>
Fri, 1 Nov 1996 06:29:34 +0000 (06:29 +0000)
commit471595b02cb6f82eabf21a63dcb354516fd4567a
tree6cda7818c9592d8e8faa8973600f3d736d8b76b1
parentc293d821b3220de377d5bedc2d4452a7f0c1858f
Fix minor buffer problems:
Off by one in verify allowed one to march one byte off the end of
wd.wd_hostname if wd.wd_hostname had no NUL characters in it.

strncpy of myname into mywd used the source buffer's length, rather
than the dest.
usr.sbin/rwhod/rwhod.c