diff options
author | Gary Jennejohn <gj@FreeBSD.org> | 2010-01-01 08:48:09 +0000 |
---|---|---|
committer | Gary Jennejohn <gj@FreeBSD.org> | 2010-01-01 08:48:09 +0000 |
commit | d5d3403804da72485d01d27a70802369e688986b (patch) | |
tree | 6a061ce90538289af8928672701f157cd7b5a4bc /editors | |
parent | 86757971bfa147c0e9684d87b364b3577e659e20 (diff) | |
download | ports-d5d3403804da72485d01d27a70802369e688986b.tar.gz ports-d5d3403804da72485d01d27a70802369e688986b.zip |
Notes
Diffstat (limited to 'editors')
-rw-r--r-- | editors/xvile/Makefile | 1 | ||||
-rw-r--r-- | editors/xvile/files/patch-x11.c | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/editors/xvile/Makefile b/editors/xvile/Makefile index dc9fb45a34de..9e36faf87e60 100644 --- a/editors/xvile/Makefile +++ b/editors/xvile/Makefile @@ -7,6 +7,7 @@ PORTNAME= xvile PORTVERSION= 9.7y +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= ftp://invisible-island.net/vile/ \ ftp://dickey.his.com/vile/ \ diff --git a/editors/xvile/files/patch-x11.c b/editors/xvile/files/patch-x11.c new file mode 100644 index 000000000000..260f846ba038 --- /dev/null +++ b/editors/xvile/files/patch-x11.c @@ -0,0 +1,21 @@ +--- x11.c.orig 2009-12-31 14:32:20.000000000 +0100 ++++ x11.c 2009-12-31 14:33:53.000000000 +0100 +@@ -2180,10 +2180,15 @@ + static GC + get_color_gc(int n, Boolean normal) + { +- ColorGC *data = (normal +- ? &(cur_win->fore_color[n]) +- : &(cur_win->back_color[n])); ++ ColorGC *data; + ++ assert(n >= 0 && n < NCOLORS); ++ ++ if (n < 0 || n > NCOLORS) ++ n = 0; /* shouldn't happen */ ++ data = (normal ++ ? &(cur_win->fore_color[n]) ++ : &(cur_win->back_color[n])); + if (cur_win->screen_depth == 1) { + data->gc = (normal + ? cur_win->textgc |