summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 7f5e4939..0caa88f5 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -527,14 +527,14 @@ t_chat(void)
} else if (ch == Ctrl('E')) {
currchar = strlen(inbuf);
} else if (ch == Ctrl('I')) {
- void *screen0;
+ screen_backup_t old_screen;
- screen0=malloc(screen_backupsize(t_lines, big_picture));
- screen_backup(t_lines, big_picture, screen0);
+ old_screen.raw_memory = malloc(screen_backupsize(t_lines, big_picture));
+ screen_backup(t_lines, big_picture, &old_screen);
add_io(0, 0);
t_idle();
- screen_restore(t_lines, big_picture, screen0);
- free(screen0);
+ screen_restore(t_lines, big_picture, &old_screen);
+ free(old_screen.raw_memory);
redoscr();
add_io(cfd, 0);
} else if (ch == Ctrl('Q')) {