From 2fd388c03663fac048c529ab0b2731cc367b3253 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 21 Feb 2012 22:51:37 +0000 Subject: [PATCH] Merge revision 514 changes: - Windows: Fix crash in cefclient when entering long URLs via the address bar (issue #532). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@516 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- tests/cefclient/cefclient_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cefclient/cefclient_win.cpp b/tests/cefclient/cefclient_win.cpp index 71f27d908..c5fcc6e38 100644 --- a/tests/cefclient/cefclient_win.cpp +++ b/tests/cefclient/cefclient_win.cpp @@ -233,7 +233,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { // When the user hits the enter key load the URL CefRefPtr browser = g_handler->GetBrowser(); - wchar_t strPtr[MAX_URL_LENGTH] = {0}; + wchar_t strPtr[MAX_URL_LENGTH+1] = {0}; *((LPWORD)strPtr) = MAX_URL_LENGTH; LRESULT strLen = SendMessage(hWnd, EM_GETLINE, 0, (LPARAM)strPtr); if (strLen > 0) {