Crash on hexediting empty file

Roland Illig roland.illig at gmx.de
Fri Feb 3 03:11:32 UTC 2006


Pavel Tsekov wrote:
> Index: src/view.c
> ===================================================================
> RCS file: /cvsroot/mc/mc/src/view.c,v
> retrieving revision 1.353
> diff -u -p -r1.353 view.c
> --- src/view.c	1 Feb 2006 15:59:21 -0000	1.353
> +++ src/view.c	2 Feb 2006 08:49:45 -0000
> @@ -2901,7 +2901,7 @@ view_labels (WView *view)
>  	    my_define (h, 2, Q_("ButtonBar|Edit"),
>  		view_toggle_hexedit_mode_cmd, view);
>  	} else {
> -	    my_define (h, 2, "", NULL, view);
> +	    buttonbar_clear_label (h, 2);

Looks great. Please commit.

Roland



More information about the mc-devel mailing list