From 14a75f4de62dd3c114fd10aae324dd3df5ffcf1f Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Thu, 24 Sep 2009 19:38:02 +0000 Subject: 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 --- net/socket/ssl_test_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/socket') 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); -- cgit v1.1