summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 19:40:16 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 19:40:16 +0800
commit44771b7ece763f2fb9ee11dd254814fcc8ac8dea (patch)
tree10d06e34cba82465e4967dd09506eaf30ae86ca3 /mbbsd
parent44ebcc9a3e9bcd18b11123044e03223e420a8da7 (diff)
downloadpttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar.gz
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar.bz2
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar.lz
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar.xz
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.tar.zst
pttbbs-44771b7ece763f2fb9ee11dd254814fcc8ac8dea.zip
preserve past screen when growing screen size
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@496 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/term.c3
1 files changed, 2 insertions, 1 deletions
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;
}