OpenSDE Packages Database (without history before r20070)
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.

63 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../altermime/altermime.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Naur altermime-0.3.10/qpe.c altermime-0.3.10-new/qpe.c
  17. --- ./qpe.c 2008-11-16 09:45:45.000000000 +0100
  18. +++ ./qpe.c 2010-11-24 14:28:43.153334114 +0100
  19. @@ -97,7 +97,7 @@
  20. op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/
  21. out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems
  22. - QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
  23. + QPD fprintf(stdout, "Soft break (%zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
  24. /** reinitialize the paragraph **/
  25. paragraph[0] = '\0';
  26. @@ -108,7 +108,7 @@
  27. }
  28. snprintf(pp, pp_remaining, "%s", charout);
  29. - QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph);
  30. + QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%zd result='%s'\n", charout, charout_size, pp_remaining, paragraph);
  31. pp += charout_size;
  32. pp_remaining -= charout_size;
  33. p++;
  34. @@ -149,13 +149,13 @@
  35. out_size = in_size *3;
  36. in_buffer = malloc( sizeof(char) *in_size +1);
  37. if (in_buffer == NULL) {
  38. - QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size);
  39. + QPD fprintf(stdout,"Error allocating %zd bytes for input buffer\n", in_size);
  40. return -1;
  41. }
  42. out_buffer = malloc( sizeof(char) *out_size *3 +1);
  43. if (in_buffer == NULL) {
  44. - QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size);
  45. + QPD fprintf(stdout,"Error allocating %zd bytes for output buffer\n", out_size);
  46. return -1;
  47. }
  48. @@ -169,7 +169,7 @@
  49. ** we segfault ;) **/
  50. *(in_buffer +in_size) = '\0';
  51. - QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size);
  52. + QPD fprintf(stdout,"file %s is loaded, size = %zd\n", fname, in_size);
  53. qp_encode( out_buffer, out_size, in_buffer, in_size );