Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Jun 10, 2024
1 parent 397783b commit a432d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/multisolver_interface/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ std::string XpressLoader::GetXpressVarFromEnvironmentVariables(
// Get the value of the LIB environment variable.
getenv_s(&requiredSize, xpress_home_from_env.data(), requiredSize,
XPRESS_var);
xpress_home_from_env = xpress_home_from_env.substr(0, env_var_size - 1);
xpress_home_from_env = xpress_home_from_env.substr(0, requiredSize - 1);

} else {
if (verbose) {
Expand Down

0 comments on commit a432d2e

Please sign in to comment.