summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-07-21 12:40:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-07-17 22:37:43 +0000
commita6d4bc19b0f68286862ce315377aaeb1e26a726b (patch)
tree6079edee872b2d7da9237931bb4756b4ddbe268d /compiler/utils
parent043f89b4e0e761c61350c2e620795826bde8f941 (diff)
parent8baf0d9263f914aee8ca91df92660342ace9e671 (diff)
Merge "Fix sizeof -> strlen to get the test to run on build servers."
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/assembler_thumb_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/assembler_thumb_test.cc b/compiler/utils/assembler_thumb_test.cc
index 25928da39c..534783acbf 100644
--- a/compiler/utils/assembler_thumb_test.cc
+++ b/compiler/utils/assembler_thumb_test.cc
@@ -116,7 +116,7 @@ std::string GetAndroidToolsDir() {
std::string subdir = toolsdir + std::string("/") + std::string(entry->d_name);
size_t eabi = subdir.find(TOOL_PREFIX);
if (eabi != std::string::npos) {
- std::string suffix = subdir.substr(eabi + sizeof(TOOL_PREFIX));
+ std::string suffix = subdir.substr(eabi + strlen(TOOL_PREFIX));
double version = strtod(suffix.c_str(), nullptr);
if (version > maxversion) {
maxversion = version;