Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ec9a59

Browse files
committed
Fix environment variable parsing
So far, the = sign was included in the value by accident.
1 parent 697b275 commit 1ec9a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subprocess/util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace linuxdeploy::subprocess {
1616
std::string current_env_var_str(*current_env_var);
1717
const auto first_eq = current_env_var_str.find_first_of('=');
1818
const auto env_var_name = current_env_var_str.substr(0, first_eq);
19-
const auto env_var_value = current_env_var_str.substr(first_eq);
19+
const auto env_var_value = current_env_var_str.substr(first_eq + 1);
2020
result[env_var_name] = env_var_value;
2121
}
2222
}

0 commit comments

Comments
 (0)