diff options
author | 1997-11-28 23:18:17 +0000 | |
---|---|---|
committer | 1997-11-28 23:18:17 +0000 | |
commit | 2d3fd0c44ac267feadaef03b448bc5c04282d10d (patch) | |
tree | 1aa71623ac08dda4d48d3d8c65118c133e54d910 | |
parent | Fix syntax wrt tracing stuff and change TRACE -> CURSESTRACE (diff) | |
download | wireguard-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.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)); |