1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/mail/anubis/files/patch-src_ssl.c
Christian Weisgerber c16e051e69 Buffer overflow and format string fixes.
(Also don't put several patches in a single file.)

Approved by:	sergei
Obtained from:	upstream
Reported by:	Ulf Harnhammar <Ulf.Harnhammar.9485@student.uu.se>
2004-03-07 20:49:32 +00:00

15 lines
393 B
C

$FreeBSD$
--- src/ssl.c.orig Wed Dec 4 22:40:45 2002
+++ src/ssl.c Sun Mar 7 15:10:48 2004
@@ -64,7 +64,7 @@
if (options.termlevel != SILENT) {
#ifdef HAVE_SYSLOG
if ((topt & T_DAEMON) && !(topt & T_FOREGROUND))
- syslog(LOG_ERR | LOG_MAIL, string_error);
+ syslog(LOG_ERR | LOG_MAIL, "%s", string_error);
else
#endif /* HAVE_SYSLOG */
mprintf(">>%s", string_error);