diam_dict.l,wimaxasncp_dict.l: fix -Werror=stringop-truncation
authorPeter Wu <peter@lekensteyn.nl>
Fri, 18 Jan 2019 23:32:49 +0000 (00:32 +0100)
committerAnders Broman <a.broman58@gmail.com>
Sat, 19 Jan 2019 07:08:43 +0000 (07:08 +0000)
commit5eb8edf1cbda6a2eea1aa7c101224f859bf31543
tree65d3b7a0a1a2c764b8bb4a414e5cc234f2477901
parent7e7caaddf802b41c26eef0b61c87c231aec519be
diam_dict.l,wimaxasncp_dict.l: fix -Werror=stringop-truncation

The given "len" is the size of the string in "txt" excluding the NUL
terminator. GCC 8.2.1+20181127-1 rightfully complains that strncpy will
not terminate the destination buffer.

Change-Id: I592c7c218cf07c13697de4e60f454326a93d1124
Reviewed-on: https://code.wireshark.org/review/31600
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/diam_dict.l
plugins/epan/wimaxasncp/wimaxasncp_dict.l