/pidgin/main: a6ddc53d1c84: Fix minor printf format warning.
Elliott Sales de Andrade
qulogic at pidgin.im
Mon Aug 5 17:52:42 EDT 2013
Changeset: a6ddc53d1c84c4f27a7b1d0ce08bbd43e2e7e6d9
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2013-08-04 06:08 -0400
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/a6ddc53d1c84
Description:
Fix minor printf format warning.
diffstat:
libpurple/ciphers/aes.c | 2 +-
libpurple/plugins/ciphertest.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff --git a/libpurple/ciphers/aes.c b/libpurple/ciphers/aes.c
--- a/libpurple/ciphers/aes.c
+++ b/libpurple/ciphers/aes.c
@@ -172,7 +172,7 @@ purple_aes_unpad_pkcs7(guchar input[], s
if (padding_len <= 0 || padding_len > PURPLE_AES_BLOCK_SIZE ||
padding_len > in_len) {
purple_debug_warning("cipher-aes",
- "Invalid padding length: %d (total %d) - "
+ "Invalid padding length: %d (total %" G_GSIZE_FORMAT ") - "
"most probably, the key was invalid\n",
padding_len, in_len);
return -1;
diff --git a/libpurple/plugins/ciphertest.c b/libpurple/plugins/ciphertest.c
--- a/libpurple/plugins/ciphertest.c
+++ b/libpurple/plugins/ciphertest.c
@@ -487,7 +487,7 @@ cipher_test_aes(void)
gchar *cipher_b16, *deciphered;
purple_debug_info("cipher-test", "Test %02d:\n", i);
- purple_debug_info("cipher-test", "\tTesting '%s' (%dbit) \n",
+ purple_debug_info("cipher-test", "\tTesting '%s' (%" G_GSIZE_FORMAT "bit) \n",
test->plaintext ? test->plaintext : "(null)",
strlen(test->key) * 8 / 2);
More information about the Commits
mailing list