1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-15 14:27:29 +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; _counter += duration;
while(_counter > _frequency) while(_string && _counter > _frequency)
{ {
_counter -= _frequency; _counter -= _frequency;
type_next_character(); type_next_character();