Skip to content

don't include NUL bytes at the end of the vendor, brand, and codename strings#7

Open
wfraser wants to merge 1 commit intozsiciarz:masterfrom
wfraser:master
Open

don't include NUL bytes at the end of the vendor, brand, and codename strings#7
wfraser wants to merge 1 commit intozsiciarz:masterfrom
wfraser:master

Conversation

@wfraser
Copy link

@wfraser wfraser commented Jan 20, 2017

String::from_utf8 doesn't interpret its input as a null-terminated string, so since these are just static buffers of bytes, it ends up pulling in large numbers of zero-bytes at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant