[BACK]Return to patch-RgbText.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / xcolorsel / patches

File: [cvs.NetBSD.org] / pkgsrc / x11 / xcolorsel / patches / patch-RgbText.c (download)

Revision 1.3, Fri May 1 23:30:25 2020 UTC (17 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Changes since 1.2: +2 -2 lines

x11/xcolorsel: fix hard-coded path to X11BASE

$NetBSD: patch-RgbText.c,v 1.3 2020/05/01 23:30:25 rillig Exp $

--- RgbText.c.orig	1994-12-13 22:13:27.000000000 +0000
+++ RgbText.c
@@ -78,7 +78,6 @@
 #include <stdlib.h>
 /* And here we have a special gift for all SUN's outside >;-> */
 #include <unistd.h>
-#include <malloc.h>
 #include <ctype.h>
 #include <errno.h>
 #include <X11/IntrinsicP.h>
@@ -146,7 +145,7 @@ static XtResource resources[] = {
 { XtNcolumns, XtCColumns, XtRDimension, sizeof(Dimension), offset(columns),
 		XtRString, (XtPointer) "30" },
 { XtNfile, XtCFile, XtRString, sizeof(String), offset(file),
-		XtRString, (XtPointer) "/usr/lib/X11/rgb.txt" },
+		XtRString, (XtPointer) "@X11BASE@/X11/rgb.txt" },
 { XtNtileWidth, XtCTileWidth, XtRDimension, sizeof(Dimension), offset(tile_width),
 		XtRString, (XtPointer) "3" },
 { XtNmaxRed, XtCMaxRed, XtRShort, sizeof(unsigned short), offset(max_red),