summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-09-10 15:45:23 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-09-10 15:45:23 +0200
commitbc365b5e445ace1ba304dda902649d39637fe964 (patch)
tree8b4475a95a63fca16ba2b6224630330477f9f1da
parentFix zip folder selection when storage path is similar (diff)
parentanother fix to ignore space then = sign (diff)
downloadandroid_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar.gz
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar.bz2
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar.lz
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar.xz
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.tar.zst
android_bootable_recovery-bc365b5e445ace1ba304dda902649d39637fe964.zip
-rw-r--r--openrecoveryscript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index bb472bf82..88b382974 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -98,6 +98,8 @@ int OpenRecoveryScript::run_script_file(void) {
LOGINFO("command is: '%s' and ", command);
val_start = script_line;
val_start += cindex + 1;
+ if ((int) *val_start == 32)
+ val_start++; //get rid of space
if ((int) *val_start == 51)
val_start++; //get rid of = at the beginning
strncpy(value, val_start, line_len - cindex - remove_nl);