Nikolay Sivov : shell32: Fix destination buffer size (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Apr 2 16:32:50 CDT 2018


Module: wine
Branch: master
Commit: 5cb0ac15f63c4fd89080031f0b9a31e02b96588e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5cb0ac15f63c4fd89080031f0b9a31e02b96588e

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Mar 31 11:31:26 2018 +0300

shell32: Fix destination buffer size (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/shell32_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 525eba4..e78e8f8 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -1082,8 +1082,7 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
                 SetWindowTextW( GetDlgItem(hWnd, IDC_ABOUT_STATIC_TEXT2), info->szOtherStuff );
                 GetWindowTextW( GetDlgItem(hWnd, IDC_ABOUT_STATIC_TEXT3),
                                 template, ARRAY_SIZE(template) );
-                MultiByteToWideChar( CP_UTF8, 0, wine_get_build_id(), -1,
-                                     version, ARRAY_SIZE(template) );
+                MultiByteToWideChar( CP_UTF8, 0, wine_get_build_id(), -1, version, ARRAY_SIZE(version) );
                 sprintfW( buffer, template, version );
                 SetWindowTextW( GetDlgItem(hWnd, IDC_ABOUT_STATIC_TEXT3), buffer );
                 hWndCtl = GetDlgItem(hWnd, IDC_ABOUT_LISTBOX);




More information about the wine-cvs mailing list