mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 03:54:17 +01: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 New Issue
Block a user