diff options
| author | Renato Westphal <renato@openbsd.org> | 2019-03-01 17:06:29 -0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-01 17:06:29 -0300 | 
| commit | fe39eb421e9d4567744ef7f9a402c1224093ec74 (patch) | |
| tree | 767fc14803eebd2042eac4d551ea0c7468bf105b /bgpd | |
| parent | 29da198289f6a724349444b1cf7f10ab0f4469ed (diff) | |
| parent | 81c077d096b60ad4bf25e52628affe02886e6d2d (diff) | |
Merge pull request #3877 from qlyoung/remove-strncpy
Remove strncpy
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/rfapi/rfapi_import.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index 6b37073e0e..df2d404f69 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -2190,7 +2190,7 @@ static void rfapiItBiIndexDump(struct agg_node *rn)  			prefix2str(&k->extra->vnc.import.aux_prefix,  				   buf_aux_pfx, sizeof(buf_aux_pfx));  		} else -			strncpy(buf_aux_pfx, "(none)", PREFIX_STRLEN); +			strlcpy(buf_aux_pfx, "(none)", sizeof(buf_aux_pfx));  		vnc_zlog_debug_verbose("bpi %p, peer %p, rd %s, aux_prefix %s",  				       k, k->peer, buf, buf_aux_pfx); @@ -2221,7 +2221,7 @@ static struct bgp_path_info *rfapiItBiIndexSearch(  			prefix2str(aux_prefix, buf_aux_pfx,  				   sizeof(buf_aux_pfx));  		} else -			strncpy(buf_aux_pfx, "(nil)", sizeof(buf_aux_pfx)); +			strlcpy(buf_aux_pfx, "(nil)", sizeof(buf_aux_pfx));  		vnc_zlog_debug_verbose("%s want prd=%s, peer=%p, aux_prefix=%s",  				       __func__,  | 
