Wireshark-commits: [Wireshark-commits] master 5eb8edf: diam_dict.l, wimaxasncp_dict.l: fix -Werror=

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 19 Jan 2019 07:08:50 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5eb8edf1cbda6a2eea1aa7c101224f859bf31543
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

5eb8edf by Peter Wu (peter@xxxxxxxxxxxxx):

    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@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  7e7caad   vwr: fix -Werror=maybe-uninitialized with GCC 8.2.1+20181127-1
     add  5eb8edf   diam_dict.l,wimaxasncp_dict.l: fix -Werror=stringop-truncation


Summary of changes:
 epan/diam_dict.l                          | 4 ++--
 plugins/epan/wimaxasncp/wimaxasncp_dict.l | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)