]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Let's make sure we're at the end of the password string before we apply a \0
authorBill Fumerola <billf@FreeBSD.org>
Sat, 2 Jan 1999 04:37:46 +0000 (04:37 +0000)
committerBill Fumerola <billf@FreeBSD.org>
Sat, 2 Jan 1999 04:37:46 +0000 (04:37 +0000)
commit5d1711220c6dc7e66798664f9766ce64e62a7f5c
tree0154d35aa8dea633c14f8c51928617be7cb5361b
parenta777e8201974d6c03102a4879275459941eb5932
Let's make sure we're at the end of the password string before we apply a \0
and terminate it. This patch ensures passwords will be the correct length of 8,
which is what is implied in the source (but not reflected in the man page).

PR: bin/7817
Reviewed by: Alfred Perlstein <bright@hotjobs.com>
Submitted by: Hiroshi Nishikawa <nis@pluto.dti.ne.jp>
usr.sbin/pw/pw_user.c