mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Merge branch 'master' of github.com:troglobit/editline
This commit is contained in:
commit
097fde5267
@ -174,7 +174,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user