mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-21 07:57:44 -05:00
Fix C string processing bug
Well, makes sense now that I look at it... but caused a couple of hours worrying why my child processes were crashing until I noticed it'd only happen if I specified custom environment variables...
This commit is contained in:
@@ -166,7 +166,7 @@ std::vector<char*> process::make_env_vector_(const subprocess_env_map_t& env) {
|
||||
throw std::runtime_error{"no equal sign in environment variable"};
|
||||
}
|
||||
|
||||
std::string existing_env_var_name{existing_env_var_name, 0, static_cast<size_t>(existing_env_var - equal_sign)};
|
||||
std::string existing_env_var_name{existing_env_var_name, 0, static_cast<size_t>(equal_sign - existing_env_var)};
|
||||
|
||||
return existing_env_var_name == key;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user