diff options
author | hmp <hmp@FreeBSD.org> | 2004-05-10 22:33:12 +0000 |
---|---|---|
committer | hmp <hmp@FreeBSD.org> | 2004-05-10 22:33:12 +0000 |
commit | b8388ce606d80458a6127cf7d088b7ec8b2d7df5 (patch) | |
tree | 2b7e0f087a9d07d70c646714ae9a0594c447b63c /sbin/natd | |
parent | 31cd8c7867059736de706bb0c1643ca3d26395d0 (diff) | |
download | FreeBSD-src-b8388ce606d80458a6127cf7d088b7ec8b2d7df5.zip FreeBSD-src-b8388ce606d80458a6127cf7d088b7ec8b2d7df5.tar.gz |
Use strlcpy(3) instead of strcpy(3).
PR: 46761
Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
Diffstat (limited to 'sbin/natd')
-rw-r--r-- | sbin/natd/natd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index 67fff80..93680fa 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -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. */ |