summaryrefslogtreecommitdiff
path: root/games/sarien/patches/patch-ac
blob: a454318277573a150a9a6efa689da29456f08d2d (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
$NetBSD: patch-ac,v 1.1 2003/08/25 08:57:54 drochner Exp $

--- src/core/savegame.c.orig	2003-08-24 18:15:58.000000000 +0200
+++ src/core/savegame.c	2003-08-24 18:18:07.000000000 +0200
@@ -590,10 +590,10 @@
 
 	/* DATADIR conflicts with ObjIdl.h in win32 SDK,
 		renamed to DATA_DIR */
-	sprintf (path, "%s/" DATA_DIR "/", home);
+	sprintf (path, "%s/" DATA_DIR, home);
 
 	MKDIR (path, 0755);
-	sprintf (path, "%s/" DATA_DIR "/%s/", home, game.id);
+	sprintf (path, "%s/" DATA_DIR "/%s", home, game.id);
 	MKDIR (path, 0711);
 
 	sprintf (path, "%s/" DATA_DIR "/%s/%08d.sav",
@@ -619,9 +619,9 @@
 		return err_BadFileOpen;
 	}
 
-	sprintf (path, "%s/" DATA_DIR "/", home);
+	sprintf (path, "%s/" DATA_DIR, home);
 	MKDIR (path, 0755);
-	sprintf (path, "%s/" DATA_DIR "/%s/", home, game.id);
+	sprintf (path, "%s/" DATA_DIR "/%s", home, game.id);
 	MKDIR (path, 0711);
 	
 	sprintf (path, "%s/" DATA_DIR "/%s/%08d.sav",