summaryrefslogtreecommitdiffstats
path: root/src/dom/uri.h
diff options
context:
space:
mode:
authorKees Cook <kees@outflux.net>2007-03-20 17:16:36 +0000
committerkeescook <keescook@users.sourceforge.net>2007-03-20 17:16:36 +0000
commit4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c (patch)
tree734a4d35a4e7b90593ae86a6c9006e58ce23d7d1 /src/dom/uri.h
parentpatch by cilix42 for bug 1671665 (diff)
downloadinkscape-4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c.tar.gz
inkscape-4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c.zip
format string protection/clean up (CVE-2007-1463, CVE-2007-1464)
(bzr r2720)
Diffstat (limited to 'src/dom/uri.h')
-rw-r--r--src/dom/uri.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dom/uri.h b/src/dom/uri.h
index 8bc7df6da..8b95686b8 100644
--- a/src/dom/uri.h
+++ b/src/dom/uri.h
@@ -30,6 +30,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <glib.h>
#include "dom.h"
@@ -197,9 +198,9 @@ private:
DOMString fragment;
- void error(const char *fmt, ...);
+ void error(const char *fmt, ...) G_GNUC_PRINTF(2,3);
- void trace(const char *fmt, ...);
+ void trace(const char *fmt, ...) G_GNUC_PRINTF(2,3);
int peek(int p);