From 8baf0d9263f914aee8ca91df92660342ace9e671 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 21 Jul 2014 11:51:32 +0100 Subject: [PATCH] Fix sizeof -> strlen to get the test to run on build servers. Change-Id: I8501d02a9bc5f84a769a80d46d0ec5754c972e5d --- compiler/utils/assembler_thumb_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/utils/assembler_thumb_test.cc b/compiler/utils/assembler_thumb_test.cc index 25928da39..534783acb 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; -- 2.11.0