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, 2 insertions, 5 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 0caa88f5..bd0a381e 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -529,13 +529,10 @@ t_chat(void)
} else if (ch == Ctrl('I')) {
screen_backup_t old_screen;
- old_screen.raw_memory = malloc(screen_backupsize(t_lines, big_picture));
- screen_backup(t_lines, big_picture, &old_screen);
+ screen_backup(&old_screen);
add_io(0, 0);
t_idle();
- screen_restore(t_lines, big_picture, &old_screen);
- free(old_screen.raw_memory);
- redoscr();
+ screen_restore(&old_screen);
add_io(cfd, 0);
} else if (ch == Ctrl('Q')) {
print_chatid(chatid);