diff options
| author | Kees Cook <kees@outflux.net> | 2007-03-20 17:16:36 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2007-03-20 17:16:36 +0000 |
| commit | 4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c (patch) | |
| tree | 734a4d35a4e7b90593ae86a6c9006e58ce23d7d1 /src/xml | |
| parent | patch by cilix42 for bug 1671665 (diff) | |
| download | inkscape-4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c.tar.gz inkscape-4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c.zip | |
format string protection/clean up (CVE-2007-1463, CVE-2007-1464)
(bzr r2720)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-css.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp index 994d73a24..8540ff9f0 100644 --- a/src/xml/repr-css.cpp +++ b/src/xml/repr-css.cpp @@ -186,10 +186,9 @@ sp_repr_css_print(SPCSSAttr *css) for ( List<AttributeRecord const> iter = css->attributeList() ; iter ; ++iter ) { - g_print(g_quark_to_string(iter->key)); - g_print(":\t"); - g_print(iter->value); - g_print("\n"); + gchar const * key = g_quark_to_string(iter->key); + gchar const * val = iter->value; + g_print("%s:\t%s\n",key,val); } } |
