mirror of https://github.com/FreeRDP/FreeRDP
[winpr,clipboard] fix WCHAR buffer size
This commit is contained in:
parent
622c688d56
commit
91b143be54
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue