Fix sementation violation when displaying options

This commit is contained in:
jmjatlanta 2018-07-11 18:01:48 -05:00
parent 534b3897b8
commit d2418161ad

View File

@ -176,7 +176,7 @@ static void tty_put(const char c)
return;
Screen[ScreenCount] = c;
if (++ScreenCount > ScreenSize) {
if (++ScreenCount >= ScreenSize) {
ScreenSize += SCREEN_INC;
Screen = realloc(Screen, sizeof(char) * ScreenSize);
}