comctl32: Avoid harcoding array lengths

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Nov 17 13:30:37 CST 2011


---
 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;
-- 
1.7.7.2




More information about the wine-patches mailing list