attrib: Avoid hardcoding the Unicode string literal lengths.

Francois Gouget fgouget at free.fr
Fri Dec 16 06:06:27 CST 2011


---
 programs/attrib/attrib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c
index 1af9e73..eb497ee 100644
--- a/programs/attrib/attrib.c
+++ b/programs/attrib/attrib.c
@@ -126,7 +126,7 @@ int wmain(int argc, WCHAR *argv[])
     DWORD count;
     HANDLE hff;
     WIN32_FIND_DATAW fd;
-    WCHAR flags[9] = {' ',' ',' ',' ',' ',' ',' ',' ','\0'};
+    WCHAR flags[] = {' ',' ',' ',' ',' ',' ',' ',' ','\0'};
     WCHAR name[128];
     WCHAR *param = argc >= 2 ? argv[1] : NULL;
     DWORD attrib_set = 0;
-- 
1.7.7.3




More information about the wine-patches mailing list