mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Use strlcpy(3) instead of strcpy(3).
PR: 46761 Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
This commit is contained in:
parent
476daaec24
commit
e53f7998da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129103
|
@ -1379,7 +1379,7 @@ void SetupPortRedirect (const char* parms)
|
|||
int i;
|
||||
struct alias_link *link = NULL;
|
||||
|
||||
strcpy (buf, parms);
|
||||
strlcpy (buf, parms, sizeof(buf));
|
||||
/*
|
||||
* Extract protocol.
|
||||
*/
|
||||
|
@ -1510,7 +1510,7 @@ SetupProtoRedirect(const char* parms)
|
|||
char* protoName;
|
||||
struct protoent *protoent;
|
||||
|
||||
strcpy (buf, parms);
|
||||
strlcpy (buf, parms, sizeof(buf));
|
||||
/*
|
||||
* Extract protocol.
|
||||
*/
|
||||
|
@ -1564,7 +1564,7 @@ void SetupAddressRedirect (const char* parms)
|
|||
char* serverPool;
|
||||
struct alias_link *link;
|
||||
|
||||
strcpy (buf, parms);
|
||||
strlcpy (buf, parms, sizeof(buf));
|
||||
/*
|
||||
* Extract local address.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue