Author: dpage
Date: 2005-05-17 15:13:14 +0100 (Tue, 17 May 2005)
New Revision: 4191
Modified:
trunk/pgadmin3/xtra/pgagent/win32.cpp
Log:
_snprintf on Win32, not snprintf
Modified: trunk/pgadmin3/xtra/pgagent/win32.cpp
===================================================================
--- trunk/pgadmin3/xtra/pgagent/win32.cpp 2005-05-17 14:12:52 UTC (rev 4190)
+++ trunk/pgadmin3/xtra/pgagent/win32.cpp 2005-05-17 14:13:14 UTC (rev 4191)
@@ -17,6 +17,7 @@
#include <windows.h>
#include <process.h>
+#include <stdio.h>
// for debugging purposes, we can start the service paused
@@ -305,7 +306,7 @@
if (!conn->IsValid())
{
char tmp[255];
- snprintf(tmp, 254, "Connection not valid: %s", conn->GetLastError().c_str());
+ _snprintf(tmp, 254, "Connection not valid: %s", conn->GetLastError().c_str());
LogMessage(tmp, LOG_ERROR);
}