diff options
-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{ |