=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: comctl32: Avoid hardcoding array lengths.

Alexandre Julliard julliard at winehq.org
Fri Nov 18 10:19:05 CST 2011


Module: wine
Branch: master
Commit: eae3c2ae27edb30211a259139660ed249653bb7b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eae3c2ae27edb30211a259139660ed249653bb7b

Author: Frédéric Delanoy <frederic.delanoy at 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;




More information about the wine-cvs mailing list