|
|
@@ -107,7 +107,8 @@ void Clipboard::Set(const Core::WString& _content)
|
|
|
_content.ToUTF8(win32_content);
|
|
|
|
|
|
HGLOBAL clipboard_data = GlobalAlloc(GMEM_FIXED, win32_content.Length() + 1);
|
|
|
- strcpy_s((char*) clipboard_data, win32_content.Length() + 1, win32_content.CString());
|
|
|
+ // Replaced strcpy_s with a simple strcpy, because we know for sure it's big enough.
|
|
|
+ strcpy((char*) clipboard_data, win32_content.CString());
|
|
|
|
|
|
if (SetClipboardData(CF_TEXT, clipboard_data) == NULL)
|
|
|
{
|