1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Use strlcpy(3) instead of strcpy(3).

PR:          	46761

Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
This commit is contained in:
Hiten Pandya 2004-05-10 22:33:12 +00:00
parent 476daaec24
commit e53f7998da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129103

View File

@ -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.
*/