diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-04 21:41:19 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-05 15:36:48 +0100 |
commit | 19bfe765a50a81f67325c4fd35314ca8a2e4ca0a (patch) | |
tree | d409b68f378baeaf71e634d4466e0a66982041c8 | |
parent | a63938194e936332d7c4cf8ee9d73af8c5a15c17 (diff) |
shell: warning C4996 function call with parameters that may be unsafe
Change-Id: Id70289b0c88dd203cac6301303fe7452088f60f9
-rw-r--r-- | shell/source/win32/shlxthandler/infotips/infotips.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx index 29cb838d303e..8686898b8f1d 100644 --- a/shell/source/win32/shlxthandler/infotips/infotips.cxx +++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx @@ -289,7 +289,7 @@ HRESULT STDMETHODCALLTYPE CInfoTip::GetInfoTip(DWORD /*dwFlags*/, wchar_t** ppws ZeroMemory(pMem, len); - msg.copy(pMem,msg.length()); + wcscpy_s(pMem, msg.length(), msg.c_str()); *ppwszTip = pMem; lpMalloc->Release(); |