Merge pull request 'veryimportantnull probably' (#22) from roominfo into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #22
This commit is contained in:
jake 2022-07-20 14:13:52 -04:00
commit 73fca2e983

View File

@ -292,7 +292,10 @@ pub struct SmallLeftDialog {
} }
impl SmallLeftDialog { impl SmallLeftDialog {
pub fn new(msg: String) -> SmallLeftDialog { pub fn new(mut msg: String) -> SmallLeftDialog {
if !msg.ends_with('\0') {
msg.push('\0');
}
SmallLeftDialog { SmallLeftDialog {
padding: [0x00004500, 0x45004500], padding: [0x00004500, 0x45004500],
msg: msg, msg: msg,