SVN Commit by dpage: r4191 - trunk/pgadmin3/xtra/pgagent - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by dpage: r4191 - trunk/pgadmin3/xtra/pgagent
Date
Msg-id 200505171413.j4HEDFle011135@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
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);
     }



pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4190 - trunk/pgadmin3/xtra/pgagent
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4192 - in trunk/pgadmin3/xtra/pgagent: . include