cmd: Avoid hardcoding the Unicode string literal lengths.
This commit is contained in:
parent
9097fa132e
commit
eb109f46e3
|
@ -562,7 +562,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
|
|||
static void WCMD_dir_trailer(WCHAR drive) {
|
||||
ULARGE_INTEGER avail, total, freebytes;
|
||||
DWORD status;
|
||||
WCHAR driveName[4] = {'c',':','\\','\0'};
|
||||
WCHAR driveName[] = {'c',':','\\','\0'};
|
||||
|
||||
driveName[0] = drive;
|
||||
status = GetDiskFreeSpaceExW(driveName, &avail, &total, &freebytes);
|
||||
|
|
Loading…
Reference in New Issue