From eb109f46e33011f5b23eb4c684346a24e89d4643 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 16 Dec 2011 13:06:23 +0100 Subject: [PATCH] cmd: Avoid hardcoding the Unicode string literal lengths. --- programs/cmd/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c index d58351e99d4..8b556f75fce 100644 --- a/programs/cmd/directory.c +++ b/programs/cmd/directory.c @@ -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);