]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use safe strlcpy rather than unsafe strncpy. After marcel's last fix,
authorWarner Losh <imp@FreeBSD.org>
Sat, 5 Aug 2006 18:22:11 +0000 (18:22 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sat, 5 Aug 2006 18:22:11 +0000 (18:22 +0000)
commit2fdfd0fee2138c04950afbca1966b6a9a63a484d
treee1e8c6f841b34bb12ada680ba895d8aa2034445d
parenta323dd4352338eaf3364483540069b096087d5de
Use safe strlcpy rather than unsafe strncpy.  After marcel's last fix,
there was still one overflow possible.  strlcpy is faster anyway
because it doesn't unexpectedly zero the entire length of the string
when copying short strings....
usr.sbin/kldxref/kldxref.c