spirito-buono
5/29/2018 - 5:36 AM

Safely copy const wchar_t* to wchar_t*

const wchar_t* default_message = L"Default message from client";
wchar_t lpszWrite[4096];
swprintf_s(lpszWrite, 4096, L"%s", default_message);
wprintf(L"lpszWrite: %Ls\n", lpszWrite);