diff options
| -rw-r--r-- | ppapi/tests/test_file_io.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc index db62d5e..d245b87 100644 --- a/ppapi/tests/test_file_io.cc +++ b/ppapi/tests/test_file_io.cc @@ -757,9 +757,9 @@ std::string TestFileIO::TestParallelReads() { const char expected_result_1[] = "__border__abc__border__"; const char expected_result_2[] = "__border__defghijkl__border__"; if (strncmp(extended_buf_1, expected_result_1, - sizeof(expected_result_1)) != 0 || + strlen(expected_result_1)) != 0 || strncmp(extended_buf_2, expected_result_2, - sizeof(expected_result_2)) != 0) { + strlen(expected_result_2)) != 0) { return std::string( "Parallel FileIO::Read operations have written into wrong buffers."); } |
