attrib: Do not hardcode number of characters in flags array.

This commit is contained in:
Christian Costa 2012-03-26 22:06:09 +02:00 committed by Alexandre Julliard
parent a4e2f1d42a
commit 5d57fc998a
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ int wmain(int argc, WCHAR *argv[])
strcpyW(name, curdir);
strcatW(name, fd.cFileName);
ATTRIB_wprintf(fmt, flags, name);
for (count=0; count < 8; count++) flags[count] = ' ';
for (count = 0; count < (sizeof(flags)/sizeof(WCHAR) - 1); count++) flags[count] = ' ';
}
} while (FindNextFileW(hff, &fd) != 0);
}