another fix to ignore space then = sign

This commit is contained in:
bigbiff bigbiff
2013-09-09 19:14:35 -04:00
parent 84f683a322
commit c03121d2ac

View File

@@ -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);