Need to trim trailing newline from the indirect command line string
This commit is contained in:
@@ -120,7 +120,7 @@ public class Bootstrap extends NativeActivity
|
|||||||
if (indirectFile != null) {
|
if (indirectFile != null) {
|
||||||
try {
|
try {
|
||||||
// Somewhat stupid but short way to read a file into a string
|
// Somewhat stupid but short way to read a file into a string
|
||||||
cmdLine = new Scanner(new File(indirectFile), "UTF-8").useDelimiter("\\A").next();
|
cmdLine = new Scanner(new File(indirectFile), "UTF-8").useDelimiter("\\A").next().trim();
|
||||||
}
|
}
|
||||||
catch (java.io.FileNotFoundException e) {
|
catch (java.io.FileNotFoundException e) {
|
||||||
Log.i(TAG, String.format("Could not read %s: %s",indirectFile, e.toString()));
|
Log.i(TAG, String.format("Could not read %s: %s",indirectFile, e.toString()));
|
||||||
|
Reference in New Issue
Block a user