diff options
author | novel <novel@FreeBSD.org> | 2005-06-30 02:08:19 +0800 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2005-06-30 02:08:19 +0800 |
commit | ee237bb0537cac81e63d09460ee99cd0dadaf53f (patch) | |
tree | cd98d5fdcb1f55147ed76c88751ce110be7130e0 /misc/mc-light | |
parent | 57da4b6c325592d53413fd291971e04c217f9f01 (diff) | |
download | freebsd-ports-gnome-ee237bb0537cac81e63d09460ee99cd0dadaf53f.tar.gz freebsd-ports-gnome-ee237bb0537cac81e63d09460ee99cd0dadaf53f.tar.zst freebsd-ports-gnome-ee237bb0537cac81e63d09460ee99cd0dadaf53f.zip |
Fix segfault on "mc -v /some/file".
PR: 82766
Submitted by: Andrej Zverev <az@inec.ru>
Approved by: Roman Y. Bogdanov (maintainer)
Diffstat (limited to 'misc/mc-light')
-rw-r--r-- | misc/mc-light/Makefile | 2 | ||||
-rw-r--r-- | misc/mc-light/files/patch-src-dlglist.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/misc/mc-light/Makefile b/misc/mc-light/Makefile index 135c335d56e9..121de74fb74b 100644 --- a/misc/mc-light/Makefile +++ b/misc/mc-light/Makefile @@ -7,7 +7,7 @@ PORTNAME= mc-light PORTVERSION= 4.1.40.p9 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= misc shells MASTER_SITES= http://mc.linuxinside.com/Releases/ DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/} diff --git a/misc/mc-light/files/patch-src-dlglist.c b/misc/mc-light/files/patch-src-dlglist.c new file mode 100644 index 000000000000..74237ea92baa --- /dev/null +++ b/misc/mc-light/files/patch-src-dlglist.c @@ -0,0 +1,11 @@ +--- src/dlglist.c.orig Tue Aug 24 18:14:12 2004 ++++ src/dlglist.c Wed Jun 29 11:13:07 2005 +@@ -71,7 +71,7 @@ + #define mc_list_previous(list) ((list) ? (((MC_DLG_List *)(list))->prev) : NULL) + #define mc_list_next(list) ((list) ? (((MC_DLG_List *)(list))->next) : NULL) + +-static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list->prev) list=list->prev; return list;} ++static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list && list->prev) list=list->prev; return list;} + static MC_DLG_List* mc_list_last (MC_DLG_List *list){ while(list->next) list=list->next; return list;} + + |