commit | c03121d2aca00aec822eb81b6b939814f39a4f46 | [log] [tgz] |
---|---|---|
author | bigbiff bigbiff <bigbiff@teamw.in> | Mon Sep 09 19:14:35 2013 -0400 |
committer | bigbiff bigbiff <bigbiff@teamw.in> | Mon Sep 09 19:14:35 2013 -0400 |
tree | c0c9b24163e760c2ef9173725b99440347fc7c96 | |
parent | 84f683a322a1d018bd6ccafce8a29212df51f4ca [diff] |
another fix to ignore space then = sign
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index bb472bf..88b3829 100644 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp
@@ -98,6 +98,8 @@ 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);