diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-22 04:53:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-22 04:53:43 +0000 |
commit | d262ff87896fdf1b6d4c42cc44341272fea18e9d (patch) | |
tree | 567f62beb0b324f1d8daed9c200164318c13af1b | |
parent | 9ec41e3db28749d047f80794777de366b88a7dfa (diff) |
Use tvb_get_string_enc() with an explicit encoding; it's a + or a -, so
just treat it as ASCII.
svn path=/trunk/; revision=54896
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-snmp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index ee588e18c6..d47581a528 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -430,7 +430,7 @@ dissect_snmp_variable_date_and_time(proto_tree *tree,int hfid, tvbuff_t *tvb, in minutes, seconds, deci_seconds, - tvb_get_string(wmem_packet_scope(),tvb,offset+8,1), + tvb_get_string_enc(wmem_packet_scope(),tvb,offset+8,1,ENC_ASCII|ENC_NA), hour_from_utc, min_from_utc); }else{ diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 87a69c5b2d..72a799258a 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -532,7 +532,7 @@ dissect_snmp_variable_date_and_time(proto_tree *tree,int hfid, tvbuff_t *tvb, in minutes, seconds, deci_seconds, - tvb_get_string(wmem_packet_scope(),tvb,offset+8,1), + tvb_get_string_enc(wmem_packet_scope(),tvb,offset+8,1,ENC_ASCII|ENC_NA), hour_from_utc, min_from_utc); }else{ |