diff options
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r-- | openpgp/src/parse/parse.rs | 3 |
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()))) }, |