# # # patch "tester.cc" # from [a7a2a1ecb40d6d77167cd62f8240fd7394fb7bdb] # to [38655910140ae01d3c76a292555de0e84a24dcd5] # ============================================================ --- tester.cc a7a2a1ecb40d6d77167cd62f8240fd7394fb7bdb +++ tester.cc 38655910140ae01d3c76a292555de0e84a24dcd5 @@ -88,9 +88,9 @@ void set_env(char const * var, char cons // note: this leaks memory, but the tester is short lived so it probably // doesn't matter much. string * tempstr = new string(var); - tempstr += '='; - tempstr += val; - putenv(tempstr.c_str()); + tempstr->append("="); + tempstr->append(val); + putenv(const_cast(tempstr->c_str())); #else #error set_env needs to be ported to this platform #endif