You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.0 KiB

  1. From: Daniel Golle <daniel@makrotopia.org>
  2. Date: Sun, 27 Dec 2020 15:03:22 +0000
  3. Subject: [PATCH] use correct printf format for size_t
  4. pdkim.c: In function 'check_bare_ed25519_pubkey':
  5. pdkim.c:1355:60: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
  6. DEBUG(D_acl) debug_printf("DKIM: unexpected pubkey len %lu\n", p->key.len);
  7. ~~^ ~~~~~~~~~~
  8. %u
  9. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  10. ---
  11. --- a/src/pdkim/pdkim.c
  12. +++ b/src/pdkim/pdkim.c
  13. @@ -1352,7 +1352,7 @@ check_bare_ed25519_pubkey(pdkim_pubkey *
  14. int excess = p->key.len - 32;
  15. if (excess > 0)
  16. {
  17. - DEBUG(D_acl) debug_printf("DKIM: unexpected pubkey len %lu\n", p->key.len);
  18. + DEBUG(D_acl) debug_printf("DKIM: unexpected pubkey len %zu\n", p->key.len);
  19. p->key.data += excess; p->key.len = 32;
  20. }
  21. }