pkgsrc/net/openvmps/patches/patch-ad
2005-11-03 20:06:41 +00:00

18 lines
422 B
Text

$NetBSD: patch-ad,v 1.1 2005/11/03 20:06:41 bouyer Exp $
--- log.c.orig 2005-11-02 23:52:09.000000000 +0100
+++ log.c 2005-11-02 23:52:32.000000000 +0100
@@ -27,11 +27,10 @@
log_opened = 1;
}
vsnprintf(str, 256, fmt, ap);
- syslog(LOG_INFO, str);
+ syslog(LOG_INFO, "%s", str);
if ( debug ) {
- fprintf(stderr,str);
- fprintf(stderr,"\n");
+ fprintf(stderr,"%s\n", str);
}
va_end(ap);