]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix NTReportError which needed an array of strings instead of just a pointer to a...
authorDanny Mayer <source@isc.org>
Sat, 3 Aug 2002 01:34:14 +0000 (01:34 +0000)
committerDanny Mayer <source@isc.org>
Sat, 3 Aug 2002 01:34:14 +0000 (01:34 +0000)
lib/isc/win32/syslog.c

index 37750333edee50ce9c1f7cd7464a594b4ebf395c..79f0e1ab2bc4be92ed8163d06de3295960ace7db 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: syslog.c,v 1.5 2002/08/01 03:43:31 mayer Exp $ */
+/* $Id: syslog.c,v 1.6 2002/08/03 01:34:14 mayer Exp $ */
 
 #include <config.h>
 
@@ -168,11 +168,14 @@ InitNTLogging(FILE *stream, int debug) {
 void
 NTReportError(const char *name, const char *str) {
        HANDLE hNTAppLog = NULL;
+       const char *buf[1];
+
+       buf[0] = str;
 
        hNTAppLog = RegisterEventSource(NULL, name);
 
        ReportEvent(hNTAppLog, EVENTLOG_ERROR_TYPE, 0,
-                   BIND_ERR_MSG, NULL, 1, 0,(LPCSTR *) str, NULL);
+                   BIND_ERR_MSG, NULL, 1, 0, buf, NULL);
 
        DeregisterEventSource(hNTAppLog);
 }
\ No newline at end of file