Use strlcpy() instead of strcpy().

Requested by:	mlaier
This commit is contained in:
ed 2008-11-13 20:40:38 +00:00
parent 86b366c6fe
commit 1c998c296e

View File

@ -414,7 +414,8 @@ getpty(int *ptynum __unused)
if (pn == NULL)
return (-1);
strcpy(line, pn);
if (strlcpy(line, pn, sizeof line) >= sizeof line)
return (-1);
return (p);
}