aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2012-02-03 16:51:32 +0800
committerdeischen <deischen@FreeBSD.org>2012-02-03 16:51:32 +0800
commit87c03bee3ca988765d25de640a6dfd27316e4602 (patch)
treeb690be9224fb9b2d48d0eba0f03a2db2575199c5 /editors
parent909f12363bc9c4fb2c06a5d6cd3a1a33b6165e14 (diff)
downloadfreebsd-ports-gnome-87c03bee3ca988765d25de640a6dfd27316e4602.tar.gz
freebsd-ports-gnome-87c03bee3ca988765d25de640a6dfd27316e4602.tar.zst
freebsd-ports-gnome-87c03bee3ca988765d25de640a6dfd27316e4602.zip
Add a patch file to prevent nedit from crashing on file->open or
file->save operations. Patch provided by: Mars G Miro <spry at anarchy doh in doh the doh ph> Thanks! PR: 164729
Diffstat (limited to 'editors')
-rw-r--r--editors/nedit/files/patch-util-misc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/nedit/files/patch-util-misc.c b/editors/nedit/files/patch-util-misc.c
new file mode 100644
index 000000000000..29640e2fefe2
--- /dev/null
+++ b/editors/nedit/files/patch-util-misc.c
@@ -0,0 +1,14 @@
+--- util/misc.c.orig 2004-08-09 18:20:00.000000000 -0400
++++ util/misc.c 2012-02-03 02:54:30.000000000 -0500
+@@ -383,7 +383,10 @@
+ *colormap = cachedColormap;
+ return (*visual == DefaultVisual(display, screen));
+ }
+-
++
++ /* Set "Default" visual to avoid crashes with the detected best ones. */
++ reqID = DefaultVisual(display, screen)->visualid;
++
+ /* Read the visualID and installColormap resources for the application.
+ visualID can be specified either as a number (the visual id as
+ shown by xdpyinfo), as a visual class name, or as Best or Default. */