From c03121d2aca00aec822eb81b6b939814f39a4f46 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Mon, 9 Sep 2013 19:14:35 -0400 Subject: another fix to ignore space then = sign --- openrecoveryscript.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openrecoveryscript.cpp') 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); -- cgit v1.2.3