* cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of

allocated memory.
(console_save) [__FreeBSD__]: Doen't exit on error, just return.
This commit is contained in:
Pavel Roskin 2003-03-05 17:52:58 +00:00
parent 7092f9e1e2
commit 818b4956ea
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-03-05 Max Khon <fjoe@iclub.nsu.ru>
* cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of
allocated memory.
(console_save) [__FreeBSD__]: Doen't exit on error, just return.
2003-03-05 Pavel Roskin <proski@gnu.org>
* cons.handler.c (show_console_contents_freebsd): Rewrite

View File

@ -403,7 +403,7 @@ console_init (void)
screen_shot.xsize = screen_info.mv_csz;
screen_shot.ysize = screen_info.mv_rsz;
if ((screen_shot.buf =
g_malloc (screen_info.mv_csz * screen_info.mv_rsz)) == NULL)
g_malloc (screen_info.mv_csz * screen_info.mv_rsz * 2)) == NULL)
return;
console_flag = 1;
@ -499,7 +499,7 @@ console_save (void)
if (ioctl (FD_OUT, GIO_SCRNMAP, &map) == -1) {
console_shutdown ();
exit (1);
return;
}
for (i = 0; i < 256; i++) {