summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2019-05-15 15:31:42 -0400
committerThomas Markwalder <tmark@isc.org>2019-06-12 09:57:32 -0400
commit753d458b1f257cc2107454db158e14e92fcecb11 (patch)
treeaa9561e6e87dac08912897b3c1d4401a10fdf2a4 /includes
parent9bb1ce338651eefdaff33558f30ed6acdc4057c6 (diff)
downloadisc-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 'includes')
-rw-r--r--includes/dhcpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index 2907fcfa..0ce3d00c 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -3,7 +3,7 @@
Definitions for dhcpd... */
/*
- * Copyright (c) 2004-2018 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2019 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996-2003 by Internet Software Consortium
*
* This Source Code Form is subject to the terms of the Mozilla Public
@@ -1392,7 +1392,7 @@ struct interface_info {
interface (if any). */
unsigned remote_id_len; /* Length of Remote ID. */
- char name [IFNAMSIZ]; /* Its name... */
+ char name [IFNAMSIZ+1]; /* Its name... */
int index; /* Its if_nametoindex(). */
int rfdesc; /* Its read file descriptor. */
int wfdesc; /* Its write file descriptor, if