mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Fixed potential buffer overrun.
This commit is contained in:
parent
f64cd8cfcb
commit
4f174786b5
@ -24,7 +24,7 @@ void Typer::update(int duration)
|
||||
}
|
||||
|
||||
_counter += duration;
|
||||
while(_counter > _frequency)
|
||||
while(_string && _counter > _frequency)
|
||||
{
|
||||
_counter -= _frequency;
|
||||
type_next_character();
|
||||
|
Loading…
Reference in New Issue
Block a user