SVN Commit by dpage: r4191 - trunk/pgadmin3/xtra/pgagent

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4191 - trunk/pgadmin3/xtra/pgagent
Date: 2005-05-17 14:13:15
Message-ID: 200505171413.j4HEDFle011135@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);
}

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-05-17 14:53:26 SVN Commit by dpage: r4192 - in trunk/pgadmin3/xtra/pgagent: . include
Previous Message svn 2005-05-17 14:12:52 SVN Commit by dpage: r4190 - trunk/pgadmin3/xtra/pgagent