[winpr,clipboard] fix WCHAR buffer size

This commit is contained in:
akallabeth 2024-03-18 19:57:02 +01:00 committed by akallabeth
parent 622c688d56
commit 91b143be54
1 changed files with 2 additions and 2 deletions

View File

@ -281,9 +281,9 @@ static BOOL add_directory_contents_to_list(wClipboard* clipboard, const WCHAR* l
const char* c;
const WCHAR* w;
} wildcard;
const char buffer[4] = "/\0*\0\0\0";
const char buffer[6] = "/\0*\0\0\0";
wildcard.c = buffer;
const size_t wildcardLen = 3;
const size_t wildcardLen = ARRAYSIZE(buffer) / sizeof(WCHAR);
WINPR_ASSERT(clipboard);
WINPR_ASSERT(local_name);