diff options
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'; } |