Index: runtime/vm/bootstrap_natives.cc |
=================================================================== |
--- runtime/vm/bootstrap_natives.cc (revision 17469) |
+++ runtime/vm/bootstrap_natives.cc (working copy) |
@@ -41,7 +41,7 @@ |
int num_entries = sizeof(BootStrapEntries) / sizeof(struct NativeEntries); |
for (int i = 0; i < num_entries; i++) { |
struct NativeEntries* entry = &(BootStrapEntries[i]); |
- if (!strncmp(function_name, entry->name_, strlen(entry->name_)) && |
+ if ((strcmp(function_name, entry->name_) == 0) && |
(entry->argument_count_ == argument_count)) { |
return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
} |