summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-11-28 23:18:17 +0000
committermillert <millert@openbsd.org>1997-11-28 23:18:17 +0000
commit2d3fd0c44ac267feadaef03b448bc5c04282d10d (patch)
tree1aa71623ac08dda4d48d3d8c65118c133e54d910
parentFix syntax wrt tracing stuff and change TRACE -> CURSESTRACE (diff)
downloadwireguard-openbsd-2d3fd0c44ac267feadaef03b448bc5c04282d10d.tar.xz
wireguard-openbsd-2d3fd0c44ac267feadaef03b448bc5c04282d10d.zip
oops, buffer needs to be 4 char larger due to a prefix/tag.
-rw-r--r--lib/libcurses/hardscroll.c2
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));