debugger: Fix setenv command to allow spaces.

To allow setting boot-command to "0 bootr -v debug=0x144" for example.
This commit is contained in:
joevt 2023-07-23 20:52:41 -07:00 committed by dingusdev
parent a15b1805fb
commit 17983e7fad
1 changed files with 2 additions and 1 deletions

View File

@ -674,7 +674,8 @@ void enter_debugger() {
} else if (cmd == "setenv") {
string var_name, value;
ss >> var_name;
ss >> value;
std::istream::sentry se(ss); // skip white space
getline(ss, value); // get everything up to eol
if (ofnvram->init())
continue;
ofnvram->setenv(var_name, value);