Module: wine Branch: master Commit: cf598bdd6232f8b2558edb14f7fa8089b7438991 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf598bdd6232f8b2558edb14f7...
Author: Francois Gouget fgouget@free.fr Date: Fri Dec 16 13:06:27 2011 +0100
attrib: Avoid hardcoding the Unicode string literal lengths.
---
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;