summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-19 22:06:09 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-19 22:06:09 +0800
commitc909e6f54001e88ab3017d9e5ac49d60da6b00cd (patch)
tree2a37dd5c9801dc35d6ff94d91bca357958987a03 /mbbsd
parentbefe15d09f02bb1d426d6dfc302521459d923b79 (diff)
downloadpttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar.gz
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar.bz2
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar.lz
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar.xz
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.tar.zst
pttbbs-c909e6f54001e88ab3017d9e5ac49d60da6b00cd.zip
undo r2169, r2170 in io.c
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2204 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/io.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 48ea042f..4b324b8c 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -285,23 +285,16 @@ igetch()
if (currutmp == NULL)
return (ch);
-#define WB_OFO_WINDOW_HEIGHT ((WB_OFO_MSG_BOTTOM) - (WB_OFO_USER_TOP) + 1)
-
if (currutmp->msgs[0].pid &&
WATERMODE(WATER_OFO) && wmofo == NOTREPLYING) {
int y, x, my_newfd;
- screenline_t *screen0 = calloc(WB_OFO_WINDOW_HEIGHT + 1,
- sizeof(screenline_t));
- memcpy(&screen0[0], &big_picture[0], sizeof(screenline_t));
- memcpy(&screen0[1], &big_picture[WB_OFO_USER_TOP],
- WB_OFO_WINDOW_HEIGHT * sizeof(screenline_t));
+ screenline_t *screen0 = calloc(t_lines, sizeof(screenline_t));
+ memcpy(screen0, big_picture, t_lines * sizeof(screenline_t));
getyx(&y, &x);
my_newfd = i_newfd;
i_newfd = 0;
my_write2();
- memcpy(&big_picture[0], &screen0[0], sizeof(screenline_t));
- memcpy(&big_picture[WB_OFO_USER_TOP], &screen0[1],
- WB_OFO_WINDOW_HEIGHT * sizeof(screenline_t));
+ memcpy(big_picture, screen0, t_lines * sizeof(screenline_t));
i_newfd = my_newfd;
move(y, x);
free(screen0);