summaryrefslogtreecommitdiffstats
path: root/src/trace
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/trace
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/trace')
-rw-r--r--src/trace/siox.cpp2
-rw-r--r--src/trace/siox.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index f06f943e0..c69af04a1 100644
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
@@ -884,7 +884,7 @@ SioxImage Siox::extractForeground(const SioxImage &originalImage,
return workImage;
}
- trace("knownBg:%d knownFg:%d", knownBg.size(), knownFg.size());
+ trace("knownBg:%zu knownFg:%zu", knownBg.size(), knownFg.size());
std::vector<CieLab> bgSignature ;
diff --git a/src/trace/siox.h b/src/trace/siox.h
index 8f6f90ff9..5d6059d3c 100644
--- a/src/trace/siox.h
+++ b/src/trace/siox.h
@@ -374,7 +374,7 @@ private:
/**
* Error logging
*/
- void error(char *fmt, ...);
+ void error(char *fmt, ...) G_GNUC_PRINTF(2,3);
};
@@ -562,12 +562,12 @@ private:
/**
* Error logging
*/
- void error(char *fmt, ...);
+ void error(char *fmt, ...) G_GNUC_PRINTF(2,3);
/**
* Trace logging
*/
- void trace(char *fmt, ...);
+ void trace(char *fmt, ...) G_GNUC_PRINTF(2,3);
/**
* Stage 1 of the color signature work. 'dims' will be either