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.
This commit is contained in:
mainzelm 2003-06-16 16:51:00 +00:00
parent cf73c3a042
commit 41b60e6ac9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}