From 80fd4549e39aa5c14229d1b2f46fe3f98f148f51 Mon Sep 17 00:00:00 2001 From: Dan Austin Date: Mon, 28 Mar 2016 14:37:01 -0700 Subject: Address const issue in preparation for libcxx rebase. Change-Id: I80c3349ee93d2b3f16c6fadc7f34b2bf4f2cc0d3 --- adb/shell_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adb') diff --git a/adb/shell_service.cpp b/adb/shell_service.cpp index ce107084c..3eeed34b2 100644 --- a/adb/shell_service.cpp +++ b/adb/shell_service.cpp @@ -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) { -- cgit v1.2.3