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:
parent
cf73c3a042
commit
41b60e6ac9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue