Revert "Revert "Merge to master: contention over isolate data slots""
[pdfium.git] / fpdfsdk / src / fpdfdoc_embeddertest.cpp
index f3663ba..8b1c4fb 100644 (file)
@@ -50,7 +50,7 @@ TEST_F(FPDFDocEmbeddertest, ActionGetFilePath) {
   ASSERT_TRUE(action);
 
   const char kExpectedResult[] = "test.pdf";
-  const unsigned long kExpectedLength = strlen(kExpectedResult) + 1;
+  const unsigned long kExpectedLength = sizeof(kExpectedResult);
   unsigned long bufsize = FPDFAction_GetFilePath(action, nullptr, 0);
   ASSERT_EQ(kExpectedLength, bufsize);