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
@ -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