summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-09-10 01:14:35 +0200
committerbigbiff bigbiff <bigbiff@teamw.in>2013-09-10 01:14:35 +0200
commitc03121d2aca00aec822eb81b6b939814f39a4f46 (patch)
treec0c9b24163e760c2ef9173725b99440347fc7c96 /openrecoveryscript.cpp
parentMerge "Add more args to make_ext4fs command" into twrp2.7 (diff)
downloadandroid_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar.gz
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar.bz2
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar.lz
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar.xz
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.tar.zst
android_bootable_recovery-c03121d2aca00aec822eb81b6b939814f39a4f46.zip
Diffstat (limited to '')
-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);