diff options
author | Anders Broman <anders.broman@ericsson.com> | 2019-07-11 13:40:01 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-07-11 13:30:09 +0000 |
commit | 121a6fa6ae60e40a906761f06d97fd47476c557b (patch) | |
tree | 29bc509e314a9a1e26e9680a7eb662814e45a1e9 /epan/dissectors/packet-c15ch.c | |
parent | 251b66da30943d35143f4ea6e105d87c19b15c8d (diff) |
Fix Wpointer-sign warnings.
Change-Id: Ia7893c4c78b1f5fc124a0bb56ae47ed6ab514f6b
Reviewed-on: https://code.wireshark.org/review/33897
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-c15ch.c')
-rw-r--r-- | epan/dissectors/packet-c15ch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-c15ch.c b/epan/dissectors/packet-c15ch.c index f6078dec19..d650d4e9fe 100644 --- a/epan/dissectors/packet-c15ch.c +++ b/epan/dissectors/packet-c15ch.c @@ -4135,7 +4135,7 @@ static void add_string_field( proto_tree * p_tree, tvbuff_t * tvb, int hf_num ) { guchar *field_stringz; - guint len; + gint len; if (max_str_len == 0) { @@ -4151,7 +4151,7 @@ static void add_string_field( proto_tree * p_tree, tvbuff_t * tvb, } else { - if ( len > max_str_len ) + if ( len > (gint)max_str_len ) { field_stringz[ max_str_len - 1 ] = '\0'; } |