patch-src_libspf2_spf_compile_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-src_libspf2_spf_compile_c,v 1.4 2017/04/19 16:56:04 jca Exp $
  2. --- src/libspf2/spf_compile.c.orig Mon Feb 20 08:26:43 2012
  3. +++ src/libspf2/spf_compile.c Wed Apr 19 18:53:10 2017
  4. @@ -577,7 +577,7 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
  5. switch (src[idx]) {
  6. case '%':
  7. if (spf_server->debug > 3)
  8. - SPF_debugf("Adding literal %%");
  9. + SPF_debugf("%s", "Adding literal %");
  10. SPF_ENSURE_STRING_AVAIL(1);
  11. *dst++ = '%';
  12. ds_len++;
  13. @@ -586,7 +586,7 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
  14. case '_':
  15. if (spf_server->debug > 3)
  16. - SPF_debugf("Adding literal space");
  17. + SPF_debugf("%s", "Adding literal space");
  18. SPF_ENSURE_STRING_AVAIL(1);
  19. *dst++ = ' ';
  20. ds_len++;
  21. @@ -595,7 +595,7 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
  22. case '-':
  23. if (spf_server->debug > 3)
  24. - SPF_debugf("Adding escaped space");
  25. + SPF_debugf("%s", "Adding escaped space");
  26. SPF_ENSURE_STRING_AVAIL(3);
  27. *dst++ = '%'; *dst++ = '2'; *dst++ = '0';
  28. ds_len += 3;
  29. @@ -604,8 +604,8 @@ SPF_c_parse_macro(SPF_server_t *spf_server,
  30. default:
  31. if (spf_server->debug > 3)
  32. - SPF_debugf("Adding illegal %%-follower '%c' at %d",
  33. - src[idx], idx);
  34. + SPF_debugf("Adding illegal %%-follower '%c' at %lu",
  35. + src[idx], (unsigned long)idx);
  36. /* SPF spec says to treat it as a literal, not
  37. * SPF_E_INVALID_ESC */
  38. /* FIXME issue a warning? */