commit | 34c48cd618b1d901fce4bbc3d82f6c76a7d179be | [log] [tgz] |
---|---|---|
author | Robert Szewczyk <szewczyk@google.com> | Fri Mar 26 06:45:55 2021 -0700 |
committer | GitHub <noreply@github.com> | Fri Mar 26 06:45:55 2021 -0700 |
tree | afc42bcd13673a821eca275c947df563afcc9b91 | |
parent | 56e6c208ba28e60570180c57d04dd19eb1b967ce [diff] | |
parent | 4577f580693d5e6bb52a9190a6c95726698fbed3 [diff] |
Merge pull request #654 from anqid-g/pr/make-gcc-8-werror-happy Address truncation warning in gcc 8+
diff --git a/src/inet/TunEndPoint.cpp b/src/inet/TunEndPoint.cpp index 785a18c..c5b8fed 100644 --- a/src/inet/TunEndPoint.cpp +++ b/src/inet/TunEndPoint.cpp
@@ -695,6 +695,7 @@ { //Keep member copy of interface name and Id strncpy(tunIntfName, ifr.ifr_name, sizeof(tunIntfName) - 1); + tunIntfName[sizeof(tunIntfName) - 1] = '\0'; } else {