Frédéric Delanoy : comctl32: Avoid hardcoding array lengths.
Module: wine Branch: master Commit: eae3c2ae27edb30211a259139660ed249653bb7b URL: http://source.winehq.org/git/wine.git/?a=commit;h=eae3c2ae27edb30211a2591396... Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Thu Nov 17 20:30:37 2011 +0100 comctl32: Avoid hardcoding array lengths. --- dlls/comctl32/ipaddress.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index ee8a31d..e51ae08 100644 --- a/dlls/comctl32/ipaddress.c +++ b/dlls/comctl32/ipaddress.c @@ -79,8 +79,8 @@ IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); static void IPADDRESS_UpdateText (const IPADDRESS_INFO *infoPtr) { - static const WCHAR zero[2] = {'0', 0}; - static const WCHAR dot[2] = {'.', 0}; + static const WCHAR zero[] = {'0', 0}; + static const WCHAR dot[] = {'.', 0}; WCHAR field[4]; WCHAR ip[16]; INT i;
participants (1)
-
Alexandre Julliard