Commit 19f55e49 authored by Morten Welinder's avatar Morten Welinder

Use right size for snprintf

Luckily we erred on the safe side.
parent 12d54308
......@@ -334,9 +334,9 @@ do_color (GnmColor const *gcolor)
GO_COLOR_TO_RGBA (color, &r, &g, &b, &a);
if (a == 0xff)
snprintf (buf, sizeof (coltxt), "#%02X%02X%02X", r, g, b);
snprintf (buf, sizeof (buf), "#%02X%02X%02X", r, g, b);
else
snprintf (buf, sizeof (coltxt), "#%02X%02X%02X%02X", r, g, b, a);
snprintf (buf, sizeof (buf), "#%02X%02X%02X%02X", r, g, b, a);
for (n = 0; go_color_palette_query (n, &nc); n++) {
if (nc.color == color) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment