From b7506a075cc049926c59d19dfbbe5e060f57eb11 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Fri, 14 Oct 2011 00:31:40 +1100 Subject: [PATCH] [rt #71653] i_log_entry() used the supplied string as a format string --- Changes | 4 ++++ Imager.xs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ef24e99f..dccffa3c 100644 --- a/Changes +++ b/Changes @@ -17,6 +17,10 @@ Bug fixes: - apply the last of the Debian unforwarded spelling fixes https://rt.cpan.org/Ticket/Display.html?id=70656 + - the log() method used its message parameter as a C level format + string. + https://rt.cpan.org/Ticket/Display.html?id=71653 + Imager 0.85_01 - 10 Oct 2011 ============== diff --git a/Imager.xs b/Imager.xs index 9716a563..f37bb0ff 100644 --- a/Imager.xs +++ b/Imager.xs @@ -131,7 +131,7 @@ void my_SvREFCNT_dec(void *p) { static void i_log_entry(char *string, int level) { - mm_log((level, string)); + mm_log((level, "%s", string)); } -- 2.39.5