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
This commit is contained in:
Guy Harris 2014-01-22 04:53:43 +00:00
parent 9ec41e3db2
commit d262ff8789
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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{