From a6c5f4e63325f3a7f653d26aeccb239a35941ed0 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Tue, 17 Sep 2013 20:01:14 -0400 Subject: check for space after = too --- openrecoveryscript.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openrecoveryscript.cpp') 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 { -- cgit v1.2.3