removed unsecure wxTmpnam() function (patch by Francesco Montorsi)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-07-08 19:06:03 +00:00
parent 6dc2e82330
commit 57e2b887a0
3 changed files with 8 additions and 33 deletions

View File

@@ -1106,22 +1106,6 @@ int wxCRT_RemoveW(const wchar_t *path)
}
#endif
#ifndef wxCRT_TmpnamW
wchar_t *wxCRT_TmpnamW(wchar_t *s)
{
// tmpnam_r() returns NULL if s=NULL, do the same
wxCHECK_MSG( s, NULL, "wxTmpnam must be called with a buffer" );
#ifndef L_tmpnam
#define L_tmpnam 1024
#endif
wxCharBuffer buf(L_tmpnam);
tmpnam(buf.data());
wxConvLibc.ToWChar(s, L_tmpnam+1, buf.data());
return s;
}
#endif // !wxCRT_TmpnamW
// ============================================================================