Date: Sat, 5 Aug 2006 18:22:11 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/kldxref kldxref.c Message-ID: <200608051822.k75IMBnB029587@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2006-08-05 18:22:11 UTC
FreeBSD src repository
Modified files:
usr.sbin/kldxref kldxref.c
Log:
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....
Revision Changes Path
1.14 +2 -4 src/usr.sbin/kldxref/kldxref.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608051822.k75IMBnB029587>
