summaryrefslogtreecommitdiff
path: root/games/cbzone/patches/patch-ad
blob: 63a5fce4b47d5d55fb7e82730ff2f54b5143be28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ad,v 1.3 2011/03/16 08:47:37 obache Exp $

--- c_scores.c.orig	1992-08-02 13:10:12.000000000 +0000
+++ c_scores.c
@@ -41,7 +41,6 @@
  *  else print to X screen.
  */
   
-extern int errno;
 int x, y, ydelta;
 
 
@@ -124,7 +123,7 @@ int scores(score)
   y = 100;
   ydelta = 15;
 
-  sprintf(buf,"%s/%s",TANKDIR,SCOREFILE);
+  sprintf(buf,"@VARBASE@/games/%s",SCOREFILE);
   sfile = fopen(buf,"r");	/* just check if it is there */
 
   if (sfile == NULL) {