/[pkgs]/devel/texlive/texlive-dvipsoverflow.patch
ViewVC logotype

Contents of /devel/texlive/texlive-dvipsoverflow.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Dec 2 08:03:19 2007 UTC (23 months, 3 weeks ago) by jnovy
Branch: MAIN
CVS Tags: texlive-2007-46_fc13, texlive-2007-32_fc10, texlive-2007-44_fc12, texlive-2007-26_fc9, texlive-2007-39_fc11, texlive-2007-11_fc9, texlive-2007-10_fc9, texlive-2007-22_fc9, texlive-2007-33_fc10, texlive-2007-40_fc11, F-12-split, texlive-2007-0_17_fc9, texlive-2007-2_fc9, texlive-2007-41_fc10, texlive-2007-41_fc11, texlive-2007-36_fc11, texlive-2007-42_fc11, F-10-split, F-11-split, texlive-2007-23_fc9, texlive-2007-20_fc9, texlive-2007-21_fc9, texlive-2007-8_fc9, texlive-2007-4_fc9, F-9-split, texlive-2007-27_fc9, texlive-2007-30_fc10, texlive-2007-31_fc10, texlive-2007-47_fc13, texlive-2007-13_fc9, texlive-2007-19_fc9, texlive-2007-18_fc9, texlive-2007-28_fc9, texlive-2007-24_fc9, texlive-2007-25_fc9, texlive-2007-5_fc9, texlive-2007-7_fc9, texlive-2007-6_fc9, texlive-2007-35_fc10, texlive-2007-17_fc9, texlive-2007-1_fc9, texlive-2007-34_fc10, texlive-2007-9_fc9, texlive-2007-37_fc11, texlive-2007-43_fc12, texlive-2007-38_fc11, texlive-2007-3_fc9, texlive-2007-12_fc9, texlive-2007-16_fc9, texlive-2007-15_fc9, texlive-2007-14_fc9, texlive-2007-29_fc10, texlive-2007-45_fc13, HEAD
File MIME type: text/x-patch
initial import
1 diff -up texlive-2007/texk/dvipsk/hps.c.dvipsoverflow texlive-2007/texk/dvipsk/hps.c
2 --- texlive-2007/texk/dvipsk/hps.c.dvipsoverflow 2007-11-22 15:44:30.000000000 +0100
3 +++ texlive-2007/texk/dvipsk/hps.c 2007-11-22 15:46:10.000000000 +0100
4 @@ -441,19 +441,32 @@ int href_name_match P2C(char *, h, char
5
6 void stamp_hps P1C(Hps_link *, pl)
7 {
8 - char tmpbuf[200] ;
9 + char * tmpbuf;
10 if (pl == NULL) {
11 error("Null pointer, oh no!") ;
12 return ;
13 - } else {
14 - /* print out the proper pdfm with local page info only
15 - * target info will be in the target dictionary */
16 - (void)sprintf(tmpbuf,
17 - " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
18 - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
19 - pl->color[0], pl->color[1], pl->color[2]) ;
20 - cmdout(tmpbuf) ;
21 - }
22 + }
23 + if(pl->title == NULL) {
24 + error("Null pointer, oh no!") ;
25 + return ;
26 + }
27 +
28 + tmpbuf = (char *) malloc(strlen(pl->title)+200);
29 + if(tmpbuf == NULL) {
30 + error("out of memory, oh no!") ;
31 + return ;
32 + }
33 +
34 + /* print out the proper pdfm with local page info only
35 + * target info will be in the target dictionary */
36 + (void)sprintf(tmpbuf,
37 + " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ",
38 + pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
39 + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
40 + pl->color[0], pl->color[1], pl->color[2]) ;
41 + cmdout(tmpbuf) ;
42 + free(tmpbuf);
43 +
44
45 }
46
47 @@ -462,18 +475,31 @@ void stamp_hps P1C(Hps_link *, pl)
48 */
49 void stamp_external P2C(char *, s, Hps_link *, pl)
50 {
51 - char tmpbuf[200];
52 + char *tmpbuf;
53 if (pl == NULL) {
54 error("Null pointer, oh no!") ;
55 return ;
56 - } else {
57 - /* print out the proper pdfm with local page info only
58 - * target info will be in the target dictionary */
59 - (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
60 - pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
61 - pl->color[0], pl->color[1], pl->color[2], s) ;
62 - cmdout(tmpbuf) ;
63 - }
64 + }
65 +
66 + if (s == NULL) {
67 + error("Null pointer, oh no!") ;
68 + return ;
69 + }
70 +
71 + tmpbuf = (char *) malloc(strlen(s) + 200);
72 + if(tmpbuf == NULL) {
73 + error("out of memory, oh no!") ;
74 + return ;
75 + }
76 +
77 + /* print out the proper pdfm with local page info only
78 + * target info will be in the target dictionary */
79 + (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ",
80 + pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
81 + pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
82 + pl->color[0], pl->color[1], pl->color[2], s) ;
83 + cmdout(tmpbuf) ;
84 + free(tmpbuf);
85 }
86
87 void finish_hps P1H(void) {

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2