summaryrefslogtreecommitdiffstats
path: root/src/message-context.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/message-context.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/message-context.h')
-rw-r--r--src/message-context.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message-context.h b/src/message-context.h
index e5ed18e8b..145a73ee5 100644
--- a/src/message-context.h
+++ b/src/message-context.h
@@ -15,7 +15,7 @@
#define SEEN_INKSCAPE_MESSAGE_CONTEXT_H
#include <stdarg.h>
-#include <glib/gtypes.h>
+#include <glib.h>
#include "message.h"
namespace Inkscape {
@@ -56,7 +56,7 @@ public:
* @param type the message type
* @param format a printf-style formatting string
*/
- void setF(MessageType type, gchar const *format, ...);
+ void setF(MessageType type, gchar const *format, ...) G_GNUC_PRINTF(3,4);
/** @brief pushes a message on the stack using printf-style formatting,
* and a stdarg argument list
@@ -82,7 +82,7 @@ public:
* @param type the message type
* @param format a printf-style formatting string
*/
- void flashF(MessageType type, gchar const *format, ...);
+ void flashF(MessageType type, gchar const *format, ...) G_GNUC_PRINTF(3,4);
/** @brief pushes a message onto the stack for a brief period of time
* using printf-style formatting and a stdarg argument list;