From 44771b7ece763f2fb9ee11dd254814fcc8ac8dea Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 25 Aug 2002 11:40:16 +0000 Subject: preserve past screen when growing screen size git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@496 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/term.c b/mbbsd/term.c index e3efe3db..f5b2544b 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.8 2002/08/24 19:43:07 kcwu Exp $ */ +/* $Id: term.c,v 1.9 2002/08/25 11:40:16 kcwu Exp $ */ #include "bbs.h" int tgetent(const char *bp, char *name); @@ -67,6 +67,7 @@ term_resize(int sig) syslog(LOG_ERR, "calloc(): %m"); return; } + memcpy(new_picture, big_picture, t_lines * sizeof(screenline_t)); free(big_picture); big_picture = new_picture; } -- cgit v1.2.3