Created
September 27, 2013 16:25
-
-
Save apoleon/6731208 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: Fri, 27 Sep 2013 16:13:35 +0200 | |
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 8c1bf37..5672235 100644 | |
--- a/src/kofola/load_level.cpp | |
+++ b/src/kofola/load_level.cpp | |
@@ -1593,6 +1593,7 @@ void lsi_Save_Level(WCHAR * pwc_Level_Name, LEVELINFO * p_Level) | |
>--FILE *file; | |
>--int i; | |
>--char p_Level_Name[256]; | |
+>--char buffer[256]; | |
>--BUNKA_LEVELU_DISK b_l_d; | |
>--DWORD>--time; | |
>--char>---pom[128]; | |
@@ -1631,9 +1632,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