This commit is contained in:
Quinten 2025-10-29 15:51:14 +01:00
parent 067e28b178
commit 3d49499b18

View File

@ -55,7 +55,7 @@ char **CgiEnvironment::toEnvp() const
{ {
char **envp = new char *[env_.size() + 1]; char **envp = new char *[env_.size() + 1];
size_t index = 0; size_t index = 0;
for (std::map<std::string, std::string>::const_iterator it = env_.begin(); it != env_.end(); ++it, ++index) for (auto it = env_.begin(); it != env_.end(); ++it, ++index)
{ {
std::string entry = it->first + "=" + it->second; std::string entry = it->first + "=" + it->second;
envp[index] = new char[entry.size() + 1]; envp[index] = new char[entry.size() + 1];