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
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 **/
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);
20 pp_remaining -= charout_size;
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);
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);
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 );