1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

MingW doesn't support wcstombs_s()...

This commit is contained in:
Magnus Hagander
2011-10-26 19:26:13 +02:00
parent 1e3b21dd5e
commit 2b64f3f17a

View File

@ -45,8 +45,7 @@ DllInstall(BOOL bInstall,
size_t ret;
if (pszCmdLine && *pszCmdLine != '\0')
wcstombs_s(&ret, event_source, sizeof(event_source),
pszCmdLine, sizeof(event_source));
wcstombs(event_source, pszCmdLine, sizeof(event_source));
/*
* This is an ugly hack due to the strange behavior of "regsvr32 /i".