aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snmp.c
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 /epan/dissectors/packet-snmp.c
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 'epan/dissectors/packet-snmp.c')
-rw-r--r--epan/dissectors/packet-snmp.c2
1 files changed, 1 insertions, 1 deletions
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{