Index: runtime/vm/snapshot.cc |
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc |
index f11c900064024e9b5c6f032fe724b640869b22c0..b1b2f4a7c722002af18878840f265b14f2ff5673 100644 |
--- a/runtime/vm/snapshot.cc |
+++ b/runtime/vm/snapshot.cc |
@@ -740,7 +740,7 @@ RawApiError* SnapshotReader::VerifyVersionAndFeatures() { |
const char* features = reinterpret_cast<const char*>(CurrentBufferAddress()); |
ASSERT(features != NULL); |
- intptr_t buffer_len = strnlen(features, PendingBytes()); |
+ intptr_t buffer_len = OS::StrNLen(features, PendingBytes()); |
if ((buffer_len != expected_len) || |
strncmp(features, expected_features, expected_len)) { |
const intptr_t kMessageBufferSize = 256; |