Use strlcpy() instead of strcpy().
Requested by: mlaier
This commit is contained in:
parent
86b366c6fe
commit
1c998c296e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user