From eae3c2ae27edb30211a259139660ed249653bb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Thu, 17 Nov 2011 20:30:37 +0100 Subject: [PATCH] comctl32: Avoid hardcoding array lengths. --- dlls/comctl32/ipaddress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index ee8a31d2d28..e51ae08be7e 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;