1 |
patrick 10/05/03 16:59:36 |
2 |
|
3 |
Added: altermime-0.3.10-fprintf-fixes.patch |
4 |
Log: |
5 |
Bump for #317955 with compile fix by Kerin Millar |
6 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-mail/altermime/files/altermime-0.3.10-fprintf-fixes.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/altermime/files/altermime-0.3.10-fprintf-fixes.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/altermime/files/altermime-0.3.10-fprintf-fixes.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: altermime-0.3.10-fprintf-fixes.patch |
15 |
=================================================================== |
16 |
diff -urp altermime-0.3.10.orig/qpe.c altermime-0.3.10/qpe.c |
17 |
--- altermime-0.3.10.orig/qpe.c 2010-04-30 23:11:15.564697415 +0100 |
18 |
+++ altermime-0.3.10/qpe.c 2010-04-30 23:17:22.368691711 +0100 |
19 |
@@ -97,7 +97,7 @@ int qp_encode( char *out, size_t out_siz |
20 |
op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/ |
21 |
out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems |
22 |
|
23 |
- QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph); |
24 |
+ QPD fprintf(stdout, "Soft break (%lu + %d > 76 char) for '%s'\n", (unsigned long)current_line_length, charout_size, paragraph); |
25 |
|
26 |
/** reinitialize the paragraph **/ |
27 |
paragraph[0] = '\0'; |
28 |
@@ -108,7 +108,7 @@ int qp_encode( char *out, size_t out_siz |
29 |
} |
30 |
|
31 |
snprintf(pp, pp_remaining, "%s", charout); |
32 |
- QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph); |
33 |
+ QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%lu result='%s'\n", charout, charout_size, (unsigned long)pp_remaining, paragraph); |
34 |
pp += charout_size; |
35 |
pp_remaining -= charout_size; |
36 |
p++; |
37 |
@@ -149,13 +149,13 @@ int qp_encode_from_file( char *fname ) |
38 |
out_size = in_size *3; |
39 |
in_buffer = malloc( sizeof(char) *in_size +1); |
40 |
if (in_buffer == NULL) { |
41 |
- QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size); |
42 |
+ QPD fprintf(stdout,"Error allocating %lu bytes for input buffer\n", (unsigned long)in_size); |
43 |
return -1; |
44 |
} |
45 |
|
46 |
out_buffer = malloc( sizeof(char) *out_size *3 +1); |
47 |
if (in_buffer == NULL) { |
48 |
- QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size); |
49 |
+ QPD fprintf(stdout,"Error allocating %lu bytes for output buffer\n", (unsigned long)out_size); |
50 |
return -1; |
51 |
} |
52 |
|
53 |
@@ -169,7 +169,7 @@ int qp_encode_from_file( char *fname ) |
54 |
** we segfault ;) **/ |
55 |
*(in_buffer +in_size) = '\0'; |
56 |
|
57 |
- QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size); |
58 |
+ QPD fprintf(stdout,"file %s is loaded, size = %lu\n", fname, (unsigned long)in_size); |
59 |
|
60 |
qp_encode( out_buffer, out_size, in_buffer, in_size ); |