mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* 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:
parent
7092f9e1e2
commit
818b4956ea
@ -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
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user