Fix potential buffer overruns found by GCC 8.2

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-10-15 22:56:23 +02:00
1 parent 67cd88cd23
commit 510b36645b
4 files changed
+24 -19

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ typedef struct svc {
/* For inetd services */
inetd_t inetd;
int stdin_fd;
char iifname[IF_NAMESIZE]; /* Ingress interface for connection */
char iifname[IF_NAMESIZE + 1]; /* Ingress interface for connection */
/* Set for services we need to redirect stdout/stderr to syslog */
struct {