blob: c3925a4f6246a6c235f2caea4ee58393e3da9753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Patch taken from http://www.freenac.net/downloads/openvmps.patch
as mentioned at http://www.freenac.net/phpBB2/viewtopic.php?t=76
for http://www.securityfocus.com/bid/15072/info
--- a/log.c 2006-09-08 16:33:01.000000000 +0200
+++ b/log.c 2006-10-22 16:32:11.000000000 +0200
@@ -27,14 +27,14 @@
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);
}
}
+
|