Address const issue in preparation for libcxx rebase.

Change-Id: I80c3349ee93d2b3f16c6fadc7f34b2bf4f2cc0d3
This commit is contained in:
Dan Austin 2016-03-28 14:37:01 -07:00
parent 8aeabe15dd
commit 80fd4549e3

View file

@ -246,7 +246,7 @@ bool Subprocess::ForkAndExec(std::string* error) {
char** current = environ;
while (char* env_cstr = *current++) {
std::string env_string = env_cstr;
char* delimiter = strchr(env_string.c_str(), '=');
char* delimiter = strchr(&env_string[0], '=');
// Drop any values that don't contain '='.
if (delimiter) {