summaryrefslogtreecommitdiffstats
path: root/src/dom/util/ziptool.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/util/ziptool.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/util/ziptool.h')
-rw-r--r--src/dom/util/ziptool.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dom/util/ziptool.h b/src/dom/util/ziptool.h
index 895f0ccb2..120fe568a 100644
--- a/src/dom/util/ziptool.h
+++ b/src/dom/util/ziptool.h
@@ -32,6 +32,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <glib.h>
#include <vector>
#include <string>
@@ -203,8 +204,8 @@ private:
std::string fileName;
//debug messages
- void error(char *fmt, ...);
- void trace(char *fmt, ...);
+ void error(char *fmt, ...) G_GNUC_PRINTF(2,3);
+ void trace(char *fmt, ...) G_GNUC_PRINTF(2,3);
unsigned long crc;
@@ -469,8 +470,8 @@ public:
private:
//debug messages
- void error(char *fmt, ...);
- void trace(char *fmt, ...);
+ void error(char *fmt, ...) G_GNUC_PRINTF(2,3);
+ void trace(char *fmt, ...) G_GNUC_PRINTF(2,3);
//# Private writing methods