diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-18 14:07:57 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-19 14:25:33 +0100 |
commit | cc2af09f608511bf316e94e4462ff041406c455b (patch) | |
tree | 4211c5939a6ee36d0553492b9d79072837dea51c /src/mcd-debug.h | |
parent | fe1e8ce4b830f665fbe098b1928969d26c553441 (diff) | |
download | telepathy-mission-control-cc2af09f608511bf316e94e4462ff041406c455b.tar.gz |
Flag printf-ish functions with G_GNUC_PRINTF and fix resulting warnings
In particular, mcd-account-manager-default could crash when migrating
an account, since it would dereference arbitrary stack contents
as a pointer-to-string.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69542
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'src/mcd-debug.h')
-rw-r--r-- | src/mcd-debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mcd-debug.h b/src/mcd-debug.h index f91e69d1..6cd9e08d 100644 --- a/src/mcd-debug.h +++ b/src/mcd-debug.h @@ -70,7 +70,7 @@ static inline gint _mcd_debug_get_level (void) void mcd_debug_print_tree (gpointer obj); -void mcd_debug (const gchar *format, ...); +void mcd_debug (const gchar *format, ...) G_GNUC_PRINTF (1, 2); G_END_DECLS |