Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d46b390ed3566b8febcf3267fe3aab3e92a6f0a1..1122d331a4fd0519799fc6bf2b97ace49889109c 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -10688,9 +10688,10 @@ Runtime::Function* Runtime::FunctionForId(FunctionId fid) { |
} |
-Runtime::Function* Runtime::FunctionForName(const char* name) { |
+Runtime::Function* Runtime::FunctionForName(Vector<const char> name) { |
for (Function* f = Runtime_functions; f->name != NULL; f++) { |
- if (strcmp(f->name, name) == 0) { |
+ if (strncmp(f->name, name.start(), name.length()) == 0 |
+ && f->name[name.length()] == 0) { |
return f; |
} |
} |