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

Alexandre Julliard julliard at winehq.org
Wed Nov 23 13:40:04 CST 2011


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Tue Nov 22 23:00:38 2011 +0100

oleaut32: Avoid hardcoding array lengths.

---

 dlls/oleaut32/vartype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index 2ab5438..9810d35 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -6408,7 +6408,7 @@ static BSTR VARIANT_BstrReplaceDecimal(const WCHAR * buff, LCID lcid, ULONG dwFl
   {
     WCHAR *p;
     WCHAR numbuff[256];
-    WCHAR empty[1] = {'\0'};
+    WCHAR empty[] = {'\0'};
     NUMBERFMTW minFormat;
 
     minFormat.NumDigits = 0;




More information about the wine-cvs mailing list