attrib: Do not hardcode number of characters in flags array.
This commit is contained in:
parent
a4e2f1d42a
commit
5d57fc998a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue