diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcurses/hardscroll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcurses/hardscroll.c b/lib/libcurses/hardscroll.c index 230c8f77814..46c08343130 100644 --- a/lib/libcurses/hardscroll.c +++ b/lib/libcurses/hardscroll.c @@ -360,7 +360,7 @@ void _nc_linedump(void) int n; char *buf; - buf = malloc((LINES * 12) + 1); /* Assumes int is at most 32bits */ + buf = malloc((LINES * 12) + 5); /* Assumes int is at most 32bits */ (void) strcpy(buf, "real"); for (n = 0; n < LINES; n++) (void) sprintf(buf + strlen(buf), " %02d", REAL(n)); |