1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/news/slurp/files/patch-misc.c
Cy Schubert 74551bbdb7 Fix a format string vulnerability.
Obtained from:	SRT Security Advisory (SRT2002-06-04-1011): slurp, posted
	to BUGTRAQ on June 4, 2002, by zillion <zillion@snosoft.com>.
2002-06-05 14:06:39 +00:00

12 lines
288 B
C

--- misc.c.orig Tue Feb 7 06:32:01 1995
+++ misc.c Wed Jun 5 06:12:43 2002
@@ -108,7 +108,7 @@
(void) strcat (buf, "\n");
#ifdef SYSLOG
if (!debug_flag)
- syslog (LOG_ERR, buf);
+ syslog (LOG_ERR, "%s", buf);
else
#endif
(void) fprintf (stderr, "%s: %s", pname, buf);