Commit 5d57fc99 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

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

parent a4e2f1d4
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment