summaryrefslogtreecommitdiff
path: root/graphics/xmfract/files/patch-af
blob: 1636d8c572c3dec7fe14988de03d77ecb8b0515c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/init_data.c.orig	Wed Jun 21 00:47:04 1995
+++ src/init_data.c	Thu Aug 10 22:13:02 2000
@@ -332,7 +332,9 @@
     {
     char *tempstr = getenv("XMFRACTDIR");
 
-    if (tempstr == NULL) tempstr = getenv("FRACTDIR");
+    if (tempstr == NULL) {
+      tempstr = getenv("FRACTDIR");
+    }
 
     if(tempstr != NULL)
       {
@@ -346,7 +348,7 @@
     }
 
   if(fractdir == NULL)
-    fractdir = getcwd(NULL, 64);
+    fractdir = XMFLACT_LIBDIR;
 
   if(fractdir == NULL)
     {