comdlg32: Avoid harcoding array lengths

Frédéric Delanoy frederic.delanoy at gmail.com
Mon Nov 21 12:19:47 CST 2011


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

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index ee4dab2..aea5224 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -2433,7 +2433,7 @@ static WCHAR get_decimal_sep(void)
 
     if(!sep)
     {
-        WCHAR buf[2] = {'.',0};
+        WCHAR buf[] = {'.', 0};
         GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf) / sizeof(buf[0]));
         sep = buf[0];
     }
-- 
1.7.7.2




More information about the wine-patches mailing list