summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-10-01 17:34:50 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-10-01 17:34:50 +0200
commit7e176dab1bd84f86e047625bd54eb179dbabf25d (patch)
treec2184664c6a03e89fb069af8b75ca726f010874e /openrecoveryscript.cpp
parentMerge "Improvements to Update_Log_File" into twrp2.7 (diff)
parentcheck for space after = too (diff)
downloadandroid_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar.gz
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar.bz2
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar.lz
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar.xz
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.tar.zst
android_bootable_recovery-7e176dab1bd84f86e047625bd54eb179dbabf25d.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 fee6fe9a4..87118bc67 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -102,6 +102,8 @@ int OpenRecoveryScript::run_script_file(void) {
val_start++; //get rid of space
if ((int) *val_start == 51)
val_start++; //get rid of = at the beginning
+ if ((int) *val_start == 32)
+ val_start++; //get rid of space
strncpy(value, val_start, line_len - cindex - remove_nl);
LOGINFO("value is: '%s'\n", value);
} else {