diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 19:38:02 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 19:38:02 +0000 |
commit | 14a75f4de62dd3c114fd10aae324dd3df5ffcf1f (patch) | |
tree | 50ec13a91f03fd9c0a1d8060e7b36d2b759b0979 /net | |
parent | ad310d823aa8d94925cd0a4ca34c74956a65f788 (diff) | |
download | chromium_src-14a75f4de62dd3c114fd10aae324dd3df5ffcf1f.zip chromium_src-14a75f4de62dd3c114fd10aae324dd3df5ffcf1f.tar.gz chromium_src-14a75f4de62dd3c114fd10aae324dd3df5ffcf1f.tar.bz2 |
oldpath is wchar_t, so use arraysize, not sizeof.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/209027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/socket/ssl_test_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket/ssl_test_util.cc b/net/socket/ssl_test_util.cc index 7e73f1e..763031f 100644 --- a/net/socket/ssl_test_util.cc +++ b/net/socket/ssl_test_util.cc @@ -177,7 +177,7 @@ void AppendToPythonPath(const FilePath& dir) { const wchar_t kPythonPath[] = L"PYTHONPATH"; // FIXME(dkegel): handle longer PYTHONPATH variables wchar_t oldpath[4096]; - if (GetEnvironmentVariable(kPythonPath, oldpath, sizeof(oldpath)) == 0) { + if (GetEnvironmentVariable(kPythonPath, oldpath, arraysize(oldpath)) == 0) { SetEnvironmentVariableW(kPythonPath, dir.value().c_str()); } else if (!wcsstr(oldpath, dir.value().c_str())) { std::wstring newpath(oldpath); |