mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
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
This commit is contained in:
parent
2dfc10ae52
commit
095dbf19d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290335
14
editors/nedit/files/patch-util-misc.c
Normal file
14
editors/nedit/files/patch-util-misc.c
Normal file
@ -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. */
|
Loading…
Reference in New Issue
Block a user