MingW doesn't support wcstombs_s()...
authorMagnus Hagander <magnus@hagander.net>
Wed, 26 Oct 2011 17:26:13 +0000 (19:26 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 26 Oct 2011 17:26:13 +0000 (19:26 +0200)
src/bin/pgevent/pgevent.c

index 5b9b0d32d74fdad42cd4892c31b28e6a527df64f..30fc4076373989d3a885c6a8ed3c103670dd9142 100644 (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".