fix sim input buffer
This commit is contained in:
parent
12a8544645
commit
175d01cb03
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ impl Machine {
|
|||
}
|
||||
|
||||
pub fn set_input(&mut self, bytes: Vec<u8>) {
|
||||
self.input_index = self.input_index.min(bytes.len());
|
||||
self.input = bytes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue