aboutsummaryrefslogtreecommitdiffstats
path: root/community/nx-libs/fix-const-char.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/nx-libs/fix-const-char.patch')
-rw-r--r--community/nx-libs/fix-const-char.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/nx-libs/fix-const-char.patch b/community/nx-libs/fix-const-char.patch
new file mode 100644
index 0000000000..404612cd63
--- /dev/null
+++ b/community/nx-libs/fix-const-char.patch
@@ -0,0 +1,28 @@
+--- a/nx-X11/lib/font/fontfile/encparse.c
++++ b/nx-X11/lib/font/fontfile/encparse.c
+@@ -785,13 +785,13 @@
+ return 0;
+ }
+
+-char*
++const char*
+ FontEncDirectory()
+ {
+- static char* dir = NULL;
++ static const char* dir = NULL;
+
+ if(dir == NULL) {
+- char *c = getenv("FONT_ENCODINGS_DIRECTORY");
++ const char *c = getenv("FONT_ENCODINGS_DIRECTORY");
+ if(c) {
+ dir = malloc(strlen(c) + 1);
+ if(!dir)
+@@ -899,7 +899,7 @@
+ {
+ FontEncPtr encoding;
+ char dir[MAXFONTFILENAMELEN], dirname[MAXFONTFILENAMELEN];
+- char *d;
++ const char *d;
+
+ if(fontFileName) {
+ parseFontFileName(fontFileName, dirname, dir);