Use strlcpy().
MFC after: 2 weeks
This commit is contained in:
parent
805a2c95ad
commit
739ac49229
@ -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 New Issue
Block a user