Fixing a long standing bug in view.c

Philipp Thomas pthomas at suse.de
Thu Feb 27 08:59:04 UTC 2003


* Jakub Jelinek (jakub at redhat.com) [20030226 20:43]:

> Shouldn't that be g_try_malloc? mc died on me today when trying to view
> a 2.8GB file, I assume because mmap failed and
> g_malloc kills the application if it fails...

Probably it should, but this would have to be wrapped in a macro as glib 1.2
doesn't support g_try_malloc.

Philipp

-- 
Philipp Thomas <pthomas at suse.de>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany



More information about the mc-devel mailing list