We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be5243 commit 07f2d78Copy full SHA for 07f2d78
1 file changed
tockloader-lib/src/attributes/decode.rs
@@ -43,6 +43,7 @@ pub(crate) fn decode_attribute(step: &[u8]) -> Option<DecodedAttribute> {
43
for n in decoder_key {
44
key.push(n.expect("Error getting key for attributes."));
45
}
46
+
47
key = key.trim_end_matches('\0').to_string();
48
let vlen = step[8];
49
@@ -57,6 +58,7 @@ pub(crate) fn decode_attribute(step: &[u8]) -> Option<DecodedAttribute> {
57
58
for n in decoder_value {
59
value.push(n.expect("Error getting key for attributes."));
60
61
62
value = value.trim_end_matches('\0').to_string();
63
Some(DecodedAttribute::new(key, value))
64
0 commit comments