diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-23 15:29:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-23 15:29:36 +0100 |
commit | a86a5c39ac194d7764c41f6e4d4a8c46ce39138f (patch) | |
tree | bfdad9ffd024d69ab353b7f17d9b95c05e1d59de /libwmc | |
parent | 4d4d6072a12677dca0e5fceb9a3be41c03cc72b0 (diff) |
wmc: fix compilation error in tests
g_print() expects format + arguments; or compilation will fail when
-Werror=format-security being used.
Diffstat (limited to 'libwmc')
-rw-r--r-- | libwmc/tests/test-wmc-com.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libwmc/tests/test-wmc-com.c b/libwmc/tests/test-wmc-com.c index 36caa792..dea5c9c7 100644 --- a/libwmc/tests/test-wmc-com.c +++ b/libwmc/tests/test-wmc-com.c @@ -102,7 +102,7 @@ print_buf (const char *detail, const char *buf, size_t len) f = g_strdup_printf ("%s (%zu) ", detail, len); flen = strlen (f); - g_print (f); + g_print ("%s", f); for (i = 0; i < len; i++) { g_print ("0x%02x ", buf[i] & 0xFF); if (((i + 1) % 12) == 0) { |