summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/parse.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index dd0b8789..1f47bf99 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -1301,7 +1301,8 @@ impl Subpacket {
}
SubpacketValue::NotationData(
NotationData::new(
- &php.parse_bytes("notation name", name_len)?,
+ std::str::from_utf8(
+ &php.parse_bytes("notation name", name_len)?)?,
&php.parse_bytes("notation value", value_len)?,
Some(flags.into())))
},