Compare commits
2 Commits
90c990e632
...
8e87a8df3b
Author | SHA1 | Date | |
---|---|---|---|
8e87a8df3b | |||
faab6e8fd6 |
@ -274,7 +274,10 @@ pub struct SmallDialog {
|
||||
}
|
||||
|
||||
impl SmallDialog {
|
||||
pub fn new(msg: String) -> SmallDialog {
|
||||
pub fn new(mut msg: String) -> SmallDialog {
|
||||
if !msg.ends_with('\0') {
|
||||
msg.push('\0');
|
||||
}
|
||||
SmallDialog {
|
||||
padding: [0; 0x02],
|
||||
msg: msg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user