diff --git a/Libraries/WebPerformance/PerformanceEntryReporter.cpp b/Libraries/WebPerformance/PerformanceEntryReporter.cpp index fc5bfa0c5a6dca..2cee8e6716944d 100644 --- a/Libraries/WebPerformance/PerformanceEntryReporter.cpp +++ b/Libraries/WebPerformance/PerformanceEntryReporter.cpp @@ -206,7 +206,7 @@ void PerformanceEntryReporter::scheduleFlushBuffer() { struct StrKey { uint32_t key; constexpr StrKey(const char *s) - : key(folly::hash::fnv32_buf(s, std::strlen(s))) {} + : key(folly::hash::fnv32_buf(s, sizeof(s) - 1)) {} constexpr bool operator==(const StrKey &rhs) const { return key == rhs.key;