aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-01-22 04:53:43 +0000
committerGuy Harris <guy@alum.mit.edu>2014-01-22 04:53:43 +0000
commitd262ff87896fdf1b6d4c42cc44341272fea18e9d (patch)
tree567f62beb0b324f1d8daed9c200164318c13af1b /asn1/snmp
parent9ec41e3db28749d047f80794777de366b88a7dfa (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
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c2
1 files changed, 1 insertions, 1 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{