Code

fix guide dragging
[inkscape.git] / src / sp-fediffuselighting.cpp
index cdb771cd021375fd158e54dc11ef34637e74ab97..a44ac5894204a7c3cdd3bbe6434d970b6ea57c8c 100644 (file)
@@ -264,7 +264,7 @@ sp_feDiffuseLighting_write(SPObject *object, Inkscape::XML::Node *repr, guint fl
    /*TODO kernelUnits */ 
     if (fediffuselighting->lighting_color_set) {
         gchar c[64];
-        sp_svg_write_color(c, 64, fediffuselighting->lighting_color);
+        sp_svg_write_color(c, sizeof(c), fediffuselighting->lighting_color);
         repr->setAttribute("lighting-color", c);
     } else
         repr->setAttribute("lighting-color", NULL);