Use strlcpy().

MFC after:	2 weeks
This commit is contained in:
Xin LI 2017-12-05 07:21:47 +00:00
parent aff7b6c709
commit 69097cd8da

View File

@ -1077,7 +1077,7 @@ user(char *name)
} }
} }
if (logging) if (logging)
strncpy(curname, name, sizeof(curname)-1); strlcpy(curname, name, sizeof(curname));
pwok = 0; pwok = 0;
#ifdef USE_PAM #ifdef USE_PAM