diff options
author | Dees Troy <dees_troy@teamw.in> | 2013-09-10 15:45:23 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@198.50.184.117> | 2013-09-10 15:45:23 +0200 |
commit | bc365b5e445ace1ba304dda902649d39637fe964 (patch) | |
tree | 8b4475a95a63fca16ba2b6224630330477f9f1da | |
parent | Fix zip folder selection when storage path is similar (diff) | |
parent | another fix to ignore space then = sign (diff) | |
download | android_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.cpp | 2 |
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); |