Skip to content

Commit

Permalink
Fixed call to the "write"
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-burda authored Nov 29, 2024
1 parent 1ee0511 commit dad32c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/safe_env/safe_env.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ std::string burda::env::secure_getenv(const std::string& name)

void burda::env::setenv(const std::string& name, const std::string& value, bool overwrite)
{
burda::env::detail::write(name, ::setenv, value, static_cast<int>(overwrite));
burda::env::detail::write(name, ::setenv, value.c_str(), static_cast<int>(overwrite));
}

void burda::env::unsetenv(const std::string& name)
Expand Down

0 comments on commit dad32c8

Please sign in to comment.