diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-22 20:46:07 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-22 20:46:07 +0000 |
commit | 514f93279494ec4448b34a7aeeff27eccaae983f (patch) | |
tree | 103ea786933143740d704d4d8a05734520e7566c /base | |
parent | 558bf52e55fa74735bb9efc851515de2994ca828 (diff) | |
download | chromium_src-514f93279494ec4448b34a7aeeff27eccaae983f.zip chromium_src-514f93279494ec4448b34a7aeeff27eccaae983f.tar.gz chromium_src-514f93279494ec4448b34a7aeeff27eccaae983f.tar.bz2 |
Fix null-termination on string copy in debug-on-start code.
BUG=73740
Review URL: http://codereview.chromium.org/6549019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/debug/debug_on_start_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/debug/debug_on_start_win.cc b/base/debug/debug_on_start_win.cc index b5c1094..6ca88dd 100644 --- a/base/debug/debug_on_start_win.cc +++ b/base/debug/debug_on_start_win.cc @@ -20,7 +20,7 @@ namespace debug { // /-/argument. // Note: command_line is non-destructively modified. bool DebugOnStart::FindArgument(wchar_t* command_line, const char* argument_c) { - wchar_t argument[50]; + wchar_t argument[50] = {}; for (int i = 0; argument_c[i]; ++i) argument[i] = argument_c[i]; |