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/sp-fediffuselighting.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/sp-fediffuselighting.cpp')
| -rw-r--r-- | src/sp-fediffuselighting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-fediffuselighting.cpp b/src/sp-fediffuselighting.cpp index cdb771cd0..a44ac5894 100644 --- a/src/sp-fediffuselighting.cpp +++ b/src/sp-fediffuselighting.cpp @@ -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); |
