1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Temporary security fixes.

Submitted by:	Chris Faulhaber <jedgar@fxp.org>
Obtained from:	Przemyslaw Frasunek <venglin@FREEBSD.LUBLIN.PL>
This commit is contained in:
Boris Popov 2001-01-30 11:28:18 +00:00
parent da45aa792a
commit 619605ab5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37788

View File

@ -0,0 +1,21 @@
--- tools.c.orig Fri Jan 26 22:46:34 2001
+++ tools.c Fri Jan 26 22:46:59 2001
@@ -189,7 +189,7 @@
sprintf(identstr, "%s %d %3d", get_debstr(0),
act_connection, act_ncpsequence);
openlog(identstr, LOG_CONS, LOG_DAEMON);
- syslog(LOG_DEBUG, buf);
+ syslog(LOG_DEBUG, "%s", buf);
closelog();
} else {
int l=strlen(buf);
@@ -249,7 +249,7 @@
}
sprintf(identstr, "%s %d %3d", get_debstr(0), act_connection, act_ncpsequence);
openlog(identstr, LOG_CONS, LOG_DAEMON);
- syslog(prio, buf);
+ syslog(prio, "%s", buf);
closelog();
if (!mode) return;
lologfile=stderr;