1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 10_fix_printk_warnings.dpatch by <julien@kirya.net>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix compile errors on debug statements
8
diff -urNad altermime~/qpe.c altermime/qpe.c
9
--- altermime~/qpe.c 2008-10-30 18:29:35.000000000 +0100
10
+++ altermime/qpe.c 2008-11-22 20:33:37.000000000 +0100
12
op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/
13
out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems
15
- QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
16
+ QPD fprintf(stdout, "Soft break (%Zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph);
18
/** reinitialize the paragraph **/
23
snprintf(pp, pp_remaining, "%s", charout);
24
- QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph);
25
+ QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%Zd result='%s'\n", charout, charout_size, pp_remaining, paragraph);
27
pp_remaining -= charout_size;
30
out_size = in_size *3;
31
in_buffer = malloc( sizeof(char) *in_size +1);
32
if (in_buffer == NULL) {
33
- QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size);
34
+ QPD fprintf(stdout,"Error allocating %Zd bytes for input buffer\n", in_size);
38
out_buffer = malloc( sizeof(char) *out_size *3 +1);
39
if (in_buffer == NULL) {
40
- QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size);
41
+ QPD fprintf(stdout,"Error allocating %Zd bytes for output buffer\n", out_size);
47
*(in_buffer +in_size) = '\0';
49
- QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size);
50
+ QPD fprintf(stdout,"file %s is loaded, size = %Zd\n", fname, in_size);
52
qp_encode( out_buffer, out_size, in_buffer, in_size );