From 7694b9a0a85e2755f1b89c266c1c7cae3b450438 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 24 Sep 2007 16:10:40 +0000 Subject: Fixed unsafe hardcoding of buffer size (bzr r3791) --- src/dropper-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dropper-context.cpp') diff --git a/src/dropper-context.cpp b/src/dropper-context.cpp index b986569ae..5c11aa50c 100644 --- a/src/dropper-context.cpp +++ b/src/dropper-context.cpp @@ -346,7 +346,7 @@ static gint sp_dropper_context_root_handler(SPEventContext *event_context, GdkEv guint32 c32 = SP_RGBA32_F_COMPOSE(R, G, B, alpha_to_set); gchar c[64]; - sp_svg_write_color(c, 64, c32); + sp_svg_write_color(c, sizeof(c), c32); // alpha of color under cursor, to show in the statusbar // locale-sensitive printf is OK, since this goes to the UI, not into SVG -- cgit v1.2.3