2 new revisions: Revision: 011eaa637746 Branch: default Author: Michael Whapples Date: Tue May 6 21:09:58 2014 UTC Log: Fix warning in Java bindings http://code.google.com/p/liblouisutdml/source/detail?r=011eaa637746 Revision: ca567281fbc7 Branch: default Author: Michael Whapples Date: Tue May 6 21:26:26 2014 UTC Log: Fix a warning in Java bindings http://code.google.com/p/liblouisutdml/source/detail?r=ca567281fbc7 ============================================================================== Revision: 011eaa637746 Branch: default Author: Michael Whapples Date: Tue May 6 21:09:58 2014 UTC Log: Fix warning in Java bindings http://code.google.com/p/liblouisutdml/source/detail?r=011eaa637746 Modified: /java/Jliblouisutdml.c ======================================= --- /java/Jliblouisutdml.c Tue May 6 20:59:32 2014 UTC +++ /java/Jliblouisutdml.c Tue May 6 21:09:58 2014 UTC @@ -40,7 +40,7 @@ (JNIEnv *env, jclass class, jstring dataPath, jstring writeablePath, jstring logfile) { - const jbyte *dataPathX = NULL; + jbyte *dataPathX = NULL; const jbyte *writeablePathX = NULL; const jbyte *logfileX = NULL; dataPathX = (*env)->GetStringUTFChars (env, dataPath, NULL); ============================================================================== Revision: ca567281fbc7 Branch: default Author: Michael Whapples Date: Tue May 6 21:26:26 2014 UTC Log: Fix a warning in Java bindings http://code.google.com/p/liblouisutdml/source/detail?r=ca567281fbc7 Modified: /java/Jliblouisutdml.c ======================================= --- /java/Jliblouisutdml.c Tue May 6 21:09:58 2014 UTC +++ /java/Jliblouisutdml.c Tue May 6 21:26:26 2014 UTC @@ -40,9 +40,10 @@ (JNIEnv *env, jclass class, jstring dataPath, jstring writeablePath, jstring logfile) { - jbyte *dataPathX = NULL; + const jbyte *dataPathX = NULL; const jbyte *writeablePathX = NULL; const jbyte *logfileX = NULL; + char *tmpDataPath; dataPathX = (*env)->GetStringUTFChars (env, dataPath, NULL); if (dataPathX == NULL) goto release; @@ -52,7 +53,9 @@ logfileX = (*env)->GetStringUTFChars (env, logfile, NULL); if (logfileX == NULL) goto release; - lou_setDataPath (dataPathX); + tmpDataPath = strdup(dataPathX); + lou_setDataPath (tmpDataPath); + free(tmpDataPath); lbu_setWriteablePath (writeablePathX); read_configuration_file (NULL, logfileX, NULL, 0); release: For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com