fix a format string error introduced in the XS re-work
authorTony Cook <tony@develop-help.com>
Mon, 1 Jul 2013 12:15:42 +0000 (22:15 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 1 Jul 2013 12:15:42 +0000 (22:15 +1000)
Imager.xs

index faab38d..216bfb4 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -147,7 +147,7 @@ calloc_temp(pTHX_ size_t size) {
 static i_color
 S_sv_to_i_color(pTHX_ SV *sv, const char *pname) {
   if (!sv_derived_from(sv, "Imager::Color")) {
-    croak("%s: not a color object");
+    croak("%s: not a color object", pname);
   }
   return *INT2PTR(i_color *, SvIV((SV *)SvRV(sv)));
 }