summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 20:22:28 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 20:22:28 +0000
commita404f04c8cf2ef6582c592ab149f486f3aa1fa16 (patch)
treed476bd9f6294eaa278af76f4b1e4285e0d3ee5c3 /ppapi
parent42aa1fa0adf702861284679eba4ed236187a4272 (diff)
downloadchromium_src-a404f04c8cf2ef6582c592ab149f486f3aa1fa16.zip
chromium_src-a404f04c8cf2ef6582c592ab149f486f3aa1fa16.tar.gz
chromium_src-a404f04c8cf2ef6582c592ab149f486f3aa1fa16.tar.bz2
Take the size of an array instead of pointer for string comparison.
BUG=100215 TEST=N/A Review URL: http://codereview.chromium.org/8283006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/tests/test_file_io.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc
index ed77669..db62d5e 100644
--- a/ppapi/tests/test_file_io.cc
+++ b/ppapi/tests/test_file_io.cc
@@ -754,8 +754,8 @@ std::string TestFileIO::TestParallelReads() {
}
// Make sure every read operation writes into the correct buffer.
- const char* expected_result_1 = "__border__abc__border__";
- const char* expected_result_2 = "__border__defghijkl__border__";
+ 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 ||
strncmp(extended_buf_2, expected_result_2,