diff options
| author | 2003-05-08 22:34:45 +0000 | |
|---|---|---|
| committer | 2003-05-08 22:34:45 +0000 | |
| commit | 51bfa0a4b30bf756c691f84e18319e515cd495b3 (patch) | |
| tree | 9cd0c72c3a34fc1077991d297c9ecc5c90462edb /usr.sbin/bind/lib/isccfg/parser.c | |
| parent | Close sockets (otherwise the file handle limit can be reached when many (diff) | |
| download | wireguard-openbsd-51bfa0a4b30bf756c691f84e18319e515cd495b3.tar.xz wireguard-openbsd-51bfa0a4b30bf756c691f84e18319e515cd495b3.zip | |
replace strcpy with strlcpy and some strdup.
ok rohee@ tdeval@ dhartmei@
requested by deraadt@
Diffstat (limited to 'usr.sbin/bind/lib/isccfg/parser.c')
| -rw-r--r-- | usr.sbin/bind/lib/isccfg/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/isccfg/parser.c b/usr.sbin/bind/lib/isccfg/parser.c index 84c0a1b7fb3..d793e1546c3 100644 --- a/usr.sbin/bind/lib/isccfg/parser.c +++ b/usr.sbin/bind/lib/isccfg/parser.c @@ -2771,9 +2771,9 @@ token_addr(cfg_parser_t *pctx, unsigned int flags, isc_netaddr_t *na) { char buf[64]; int i; - strcpy(buf, s); + strlcpy(buf, s, sizeof(buf)); for (i = 0; i < 3; i++) { - strcat(buf, ".0"); + strlcat(buf, ".0", sizeof(buf)); if (inet_pton(AF_INET, buf, &in4a) == 1) { isc_netaddr_fromin(na, &in4a); return (ISC_R_SUCCESS); |
