1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Fixed potential buffer overrun.

This commit is contained in:
Thomas Harte 2016-07-06 21:39:09 -04:00
parent f64cd8cfcb
commit 4f174786b5

View File

@ -24,7 +24,7 @@ void Typer::update(int duration)
}
_counter += duration;
while(_counter > _frequency)
while(_string && _counter > _frequency)
{
_counter -= _frequency;
type_next_character();