Fixed a fault strcpy hedgeroid
authorXeli
Fri, 24 Jun 2011 13:14:03 +0200
branchhedgeroid
changeset 5350 4c100fbfad5f
parent 5347 a34995ecf90e
child 5353 37b0fb82e22c
Fixed a fault strcpy
project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c
--- a/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Fri Jun 24 13:13:31 2011 +0200
+++ b/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Fri Jun 24 13:14:03 2011 +0200
@@ -6,7 +6,7 @@
 
 #define TAG "HWEngine Loader"
 
-typedef  (*HWEngine_Game)(int);
+typedef  (*HWEngine_Game)(char**);
 
 main(int argc, char *argv[]){
 	void *handle;
@@ -33,7 +33,7 @@
 		exit(EXIT_FAILURE);
 	}
 	__android_log_print(ANDROID_LOG_INFO, "foo", "dlsym succeeded");
-	Game(1);
+	Game(argv);
 	__android_log_print(ANDROID_LOG_INFO, "foo", "Game() succeeded");
 
 	dlclose(handle);