diff options
author | Thomas Markwalder <tmark@isc.org> | 2019-05-15 15:31:42 -0400 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2019-06-12 09:57:32 -0400 |
commit | 753d458b1f257cc2107454db158e14e92fcecb11 (patch) | |
tree | aa9561e6e87dac08912897b3c1d4401a10fdf2a4 /relay | |
parent | 9bb1ce338651eefdaff33558f30ed6acdc4057c6 (diff) | |
download | isc-dhcp-753d458b1f257cc2107454db158e14e92fcecb11.tar.gz |
[#15,!10] Minor changes to eliminate warnings under GCC 9
added release note
common/parse.c
parse_warn() - upped format buffer size to squelch warning
includes/dhcpd.h
struct interface_info - bumped name size by 1 to squelch warning
relay/dhcrelay.c
request_v4_interface() - replace strncpy with memcpy to
squelch warning (len is already checked above it)
server/confpars.c
parse_failover_peer() - pass token value into log_fatal
calls rather than null pointer
Diffstat (limited to 'relay')
-rw-r--r-- | relay/dhcrelay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index d8caaaf6..dd8e446d 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -3,7 +3,7 @@ DHCP/BOOTP Relay Agent. */ /* - * Copyright(c) 2004-2018 by Internet Systems Consortium, Inc.("ISC") + * Copyright(c) 2004-2019 by Internet Systems Consortium, Inc.("ISC") * Copyright(c) 1997-2003 by Internet Software Consortium * * This Source Code Form is subject to the terms of the Mozilla Public @@ -2119,7 +2119,7 @@ void request_v4_interface(const char* name, int flags) { (flags & INTERFACE_UPSTREAM ? 'Y' : 'N'), (flags & INTERFACE_DOWNSTREAM ? 'Y' : 'N')); - strncpy(tmp->name, name, len); + memcpy(tmp->name, name, len); interface_snorf(tmp, (INTERFACE_REQUESTED | flags)); interface_dereference(&tmp, MDL); } |