updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / altermime / altermime.patch
blobc4a11cff95faa56c46edcc7ef7d2431025aa111f
1 diff -Naur altermime-0.3.10/qpe.c altermime-0.3.10-new/qpe.c
2 --- altermime-0.3.10/qpe.c 2008-11-16 09:45:45.000000000 +0100
3 +++ altermime-0.3.10-new/qpe.c 2010-11-24 14:28:43.153334114 +0100
4 @@ -97,7 +97,7 @@
5 op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/
6 out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems
8 - QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
9 + QPD fprintf(stdout, "Soft break (%zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
11 /** reinitialize the paragraph **/
12 paragraph[0] = '\0';
13 @@ -108,7 +108,7 @@
16 snprintf(pp, pp_remaining, "%s", charout);
17 - QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph);
18 + QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%zd result='%s'\n", charout, charout_size, pp_remaining, paragraph);
19 pp += charout_size;
20 pp_remaining -= charout_size;
21 p++;
22 @@ -149,13 +149,13 @@
23 out_size = in_size *3;
24 in_buffer = malloc( sizeof(char) *in_size +1);
25 if (in_buffer == NULL) {
26 - QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size);
27 + QPD fprintf(stdout,"Error allocating %zd bytes for input buffer\n", in_size);
28 return -1;
31 out_buffer = malloc( sizeof(char) *out_size *3 +1);
32 if (in_buffer == NULL) {
33 - QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size);
34 + QPD fprintf(stdout,"Error allocating %zd bytes for output buffer\n", out_size);
35 return -1;
38 @@ -169,7 +169,7 @@
39 ** we segfault ;) **/
40 *(in_buffer +in_size) = '\0';
42 - QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size);
43 + QPD fprintf(stdout,"file %s is loaded, size = %zd\n", fname, in_size);
45 qp_encode( out_buffer, out_size, in_buffer, in_size );