mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
Merge pull request #19 from jmjatlanta/jmj_sigsev
Fix sementation violation when displaying options
This commit is contained in:
commit
405f091888
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user