From 41b60e6ac90d5cdc645ea423b4846a02277d17df Mon Sep 17 00:00:00 2001 From: mainzelm Date: Mon, 16 Jun 2003 16:51:00 +0000 Subject: [PATCH] Specify "%s" as format string for syslog to prevent the message from being interpreted as a format string (Patch by Peter Wang). This fixes #745444. --- scsh/syslog1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scsh/syslog1.c b/scsh/syslog1.c index 036d709..24389ce 100644 --- a/scsh/syslog1.c +++ b/scsh/syslog1.c @@ -367,7 +367,7 @@ sch_syslog(s48_value sch_level, s48_value sch_opt_facility, if (!syslog_open) s48_raise_string_os_error("syslog isn't open"); - syslog(facility | level, s48_extract_string (sch_message)); + syslog(facility | level, "%s", s48_extract_string (sch_message)); return S48_UNSPECIFIC; }