summaryrefslogtreecommitdiff
path: root/games/galaxa/patches/patch-ab
blob: c2b9b615e3a0cc1e853224a3cf3df92929a8a8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-ab,v 1.3 1998/09/13 20:55:15 garbled Exp $
--- galaxa.c.orig	Wed Apr 22 22:29:14 1998
+++ galaxa.c	Sun Sep 13 13:41:46 1998
@@ -2693,16 +2693,14 @@
   FILE * fi;
   int i, z;
   
-  
   /* Open file: */
-  
-  fi = fopen("galaxa-highs.dat", "r");
+  fi = fopen("/var/games/galaxa-highs.dat", "r");
   
   if (fi == NULL)
     {
       /* Set defaults: */
       
-      perror("galaxa-highs.dat");
+      perror("/var/games/galaxa-highs.dat");
       
       for (i = 0; i < 10; i++)
 	{
@@ -2750,12 +2748,12 @@
 {
   FILE * fi;
   int i;
-  
-  fi = fopen("galaxa-highs.dat", "w");
+
+    fi = fopen("/var/games/galaxa-highs.dat", "w");
   
   if (fi == NULL)
     {
-      perror("galaxa-highs.dat");
+      perror("/var/games/galaxa-highs.dat");
     }
   else
     {