mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Use strlcpy().
MFC after: 2 weeks
This commit is contained in:
parent
aff7b6c709
commit
69097cd8da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326562
|
@ -1077,7 +1077,7 @@ user(char *name)
|
|||
}
|
||||
}
|
||||
if (logging)
|
||||
strncpy(curname, name, sizeof(curname)-1);
|
||||
strlcpy(curname, name, sizeof(curname));
|
||||
|
||||
pwok = 0;
|
||||
#ifdef USE_PAM
|
||||
|
|
Loading…
Reference in a new issue