Skip to content

Commit

Permalink
Truncate u-boot version string if too long
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Dec 2, 2024
1 parent eb51707 commit cace1bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/signatures/uboot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ pub fn uboot_parser(file_data: &[u8], offset: usize) -> Result<SignatureResult,

if !uboot_version_string.is_empty() {
result.size = uboot_version_string.len();
result.description = format!("{}: {}", result.description, uboot_version_string);
result.description =
format!("{}: {:.100}", result.description, uboot_version_string);
return Ok(result);
}
}
Expand Down

0 comments on commit cace1bc

Please sign in to comment.