diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-09-24 16:10:40 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-09-24 16:10:40 +0000 |
| commit | 7694b9a0a85e2755f1b89c266c1c7cae3b450438 (patch) | |
| tree | f58b05b531cd4895da3c023d69a4631185296be4 /src/gradient-context.cpp | |
| parent | 1781868 Faster win32 installer start-up, readded catalan for installer (diff) | |
| download | inkscape-7694b9a0a85e2755f1b89c266c1c7cae3b450438.tar.gz inkscape-7694b9a0a85e2755f1b89c266c1c7cae3b450438.zip | |
Fixed unsafe hardcoding of buffer size
(bzr r3791)
Diffstat (limited to 'src/gradient-context.cpp')
| -rw-r--r-- | src/gradient-context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index f83625abe..3f643b2a9 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -297,7 +297,7 @@ sp_gradient_context_add_stop_near_point (SPGradientContext *rc, SPItem *item, N guint32 cnew = average_color (c1, c2, (offset - prev_stop->offset) / (next_stop->offset - prev_stop->offset)); Inkscape::CSSOStringStream os; gchar c[64]; - sp_svg_write_color (c, 64, cnew); + sp_svg_write_color (c, sizeof(c), cnew); gdouble opacity = (gdouble) SP_RGBA32_A_F (cnew); os << "stop-color:" << c << ";stop-opacity:" << opacity <<";"; SP_OBJECT_REPR (newstop)->setAttribute("style", os.str().c_str()); |
