Merge "Address const issue in preparation for libcxx rebase." am: a2a13e3
am: 61e5a66
* commit '61e5a6625dfdb586abb9f83b20bc1d727a783225':
Address const issue in preparation for libcxx rebase.
Change-Id: I883b8210df7c8ddd1f82914ba448af0175f53437
diff --git a/adb/shell_service.cpp b/adb/shell_service.cpp
index ce10708..3eeed34 100644
--- a/adb/shell_service.cpp
+++ b/adb/shell_service.cpp
@@ -246,7 +246,7 @@
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) {