diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp
index d86e3b0e3cd8c73c01e492b9ff2c055bc04476b7..b4c42e866d92950867f1685ef6de7a1d56cca1e5 100644 (file)
--- a/src/sp-gradient.cpp
+++ b/src/sp-gradient.cpp
os << "currentColor";
} else {
gchar c[64];
- sp_svg_write_color(c, 64, specifiedcolor);
+ sp_svg_write_color(c, sizeof(c), specifiedcolor);
os << c;
}
os << ";stop-opacity:" << opacity;
/* strictly speaking, offset an SVG <number> rather than a CSS one, but exponents make no
* sense for offset proportions. */
gchar c[64];
- sp_svg_write_color(c, 64, gr->vector.stops[i].color.toRGBA32( 0x00 ));
+ sp_svg_write_color(c, sizeof(c), gr->vector.stops[i].color.toRGBA32( 0x00 ));
os << "stop-color:" << c << ";stop-opacity:" << gr->vector.stops[i].opacity;
child->setAttribute("style", os.str().c_str());
/* Order will be reversed here */