mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
more str{n}{cat,cpy} corrections rt45981_stage2
This commit is contained in:
@@ -1041,8 +1041,7 @@ plus_option(char *option, struct query *query, isc_boolean_t global)
|
||||
isc_boolean_t state = ISC_TRUE;
|
||||
size_t n;
|
||||
|
||||
strncpy(option_store, option, sizeof(option_store));
|
||||
option_store[sizeof(option_store) - 1] = 0;
|
||||
strlcpy(option_store, option, sizeof(option_store));
|
||||
ptr = option_store;
|
||||
cmd = next_token(&ptr, "=");
|
||||
if (cmd == NULL) {
|
||||
@@ -1657,8 +1656,7 @@ dash_option(const char *option, char *next, struct query *query,
|
||||
return (value_from_next);
|
||||
case 'x':
|
||||
get_reverse(textname, sizeof(textname), value, query->ip6_int);
|
||||
strncpy(query->textname, textname, sizeof(query->textname));
|
||||
query->textname[sizeof(query->textname) - 1] = 0;
|
||||
strlcpy(query->textname, textname, sizeof(query->textname));
|
||||
query->rdtype = dns_rdatatype_ptr;
|
||||
query->rdclass = dns_rdataclass_in;
|
||||
*setname = ISC_TRUE;
|
||||
@@ -1845,9 +1843,8 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv)
|
||||
*/
|
||||
if (query == &default_query)
|
||||
query = clone_default_query();
|
||||
strncpy(query->textname, rv[0],
|
||||
strlcpy(query->textname, rv[0],
|
||||
sizeof(query->textname));
|
||||
query->textname[sizeof(query->textname) - 1] = 0;
|
||||
ISC_LIST_APPEND(queries, query, link);
|
||||
|
||||
query = clone_default_query();
|
||||
|
Reference in New Issue
Block a user