summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index ac8ace57..5e9be5e3 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -493,12 +493,13 @@ t_chat()
} else if (ch == Ctrl('E')) {
currchar = strlen(inbuf);
} else if (ch == Ctrl('I')) {
- screenline_t *screen0 = calloc(t_lines, sizeof(screenline_t));
+ void *screen0;
- memcpy(screen0, big_picture, t_lines * sizeof(screenline_t));
+ screen0=malloc(screen_backupsize(t_lines, big_picture));
+ screen_backup(t_lines, big_picture, screen0);
add_io(0, 0);
t_idle();
- memcpy(big_picture, screen0, t_lines * sizeof(screenline_t));
+ screen_restore(t_lines, big_picture, screen0);
free(screen0);
redoscr();
add_io(cfd, 0);