Created
November 4, 2013 16:23
-
-
Save apoleon/7305139 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Markus Koschany <apo@gambaru.de> | |
Date: Mon, 4 Nov 2013 15:47:12 +0100 | |
Subject: load_level | |
--- | |
src/kofola/load_level.cpp | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
diff --git a/src/kofola/load_level.cpp b/src/kofola/load_level.cpp | |
index 551244e..301a4eb 100644 | |
--- a/src/kofola/load_level.cpp | |
+++ b/src/kofola/load_level.cpp | |
@@ -1557,6 +1557,7 @@ void lsi_Save_Level(WCHAR * pwc_Level_Name, LEVELINFO * p_Level) | |
FILE *file; | |
int i; | |
char p_Level_Name[MAX_FILENAME]; | |
+ char buffer[MAX_FILENAME]; | |
BUNKA_LEVELU_DISK b_l_d; | |
DWORD time; | |
char pom[128]; | |
@@ -1595,9 +1596,9 @@ void lsi_Save_Level(WCHAR * pwc_Level_Name, LEVELINFO * p_Level) | |
lsi_copy_save(p_Level_Name, p_Level); | |
- sprintf(p_Level_Name, "%s.lvc", p_Level_Name); | |
+ sprintf(buffer, "%s.lvc", p_Level_Name); | |
- file = fopen(p_Level_Name, "wb"); | |
+ file = fopen(buffer, "wb"); | |
if(!file) | |
return; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment