From: Tony Cook Date: Thu, 13 Oct 2011 13:31:40 +0000 (+1100) Subject: [rt #71653] i_log_entry() used the supplied string as a format string X-Git-Tag: v0.85_02~21 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/b7506a075cc049926c59d19dfbbe5e060f57eb11 [rt #71653] i_log_entry() used the supplied string as a format string --- 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)); }