diff -ruNd textproc/mswordview/patches/patch-ba textproc/mswordview/patches/patch-ba --- textproc/mswordview/patches/patch-ba Thu Jan 1 03:00:00 1970 +++ textproc/mswordview/patches/patch-ba Fri Dec 10 04:23:20 1999 @@ -0,0 +1,12 @@ +--- doc_limits.c.orig Mon May 10 19:10:56 1999 ++++ doc_limits.c Fri Dec 10 04:21:45 1999 +@@ -43,8 +43,7 @@ + charset="utf-8"; + + if ((doc_style == NULL) || (doc_style->begin == NULL)) +- fprintf(outputfile,"\n
\n\n\n\n",charset); ++ fprintf(outputfile,"\n\n\n\n\n",charset); + else + { + astring = expand_variables(doc_style->begin,NULL); diff -ruNd textproc/mswordview/patches/patch-bb textproc/mswordview/patches/patch-bb --- textproc/mswordview/patches/patch-bb Thu Jan 1 03:00:00 1970 +++ textproc/mswordview/patches/patch-bb Sun Dec 12 22:14:16 1999 @@ -0,0 +1,38 @@ +--- config-mswordview.orig Tue May 11 15:22:32 1999 ++++ config-mswordview Sun Dec 12 22:14:09 1999 +@@ -39,23 +39,21 @@ + Document + { + Start " +- +- +-
+- Document converted from ms word 8 by
+-
+- MSWordView($version)
+- MSWordView written by
+- Caolan McNamara
+-
+- "
++
++ Document converted from ms word 8 by
++
++ MSWordView($version)
++ MSWordView written by
++ Caolan McNamara and patched @BABOLO
++ "
+ }
+
+ # A style configuration has the following syntax
diff -ruNd textproc/mswordview/patches/patch-bc textproc/mswordview/patches/patch-bc
--- textproc/mswordview/patches/patch-bc Thu Jan 1 03:00:00 1970
+++ textproc/mswordview/patches/patch-bc Fri Dec 10 22:33:17 1999
@@ -0,0 +1,20 @@
+--- config-test.orig Tue May 11 14:59:38 1999
++++ config-test Fri Dec 10 22:32:35 1999
+@@ -39,12 +39,11 @@
+ Document
+ {
+ Start "
+-
\nDocument converted from word 8 by \nMSWordView (%s)
\n",wv_version);
+- fprintf(outputfile,"MSWordView written by Caolan McNamara\n\n");
++ fprintf(outputfile,"
\nDocument converted from word 8 by \n"
++ "MSWordView (%s)
\n",wv_version);
++ fprintf(outputfile,"MSWordView written by Caolan McNamara\n"
++ "and patched @BABOLO\n");
+ }
+ if (core)
+ fprintf(outputfile,"\n\n");
diff -ruNd textproc/mswordview/patches/patch-bi textproc/mswordview/patches/patch-bi
--- textproc/mswordview/patches/patch-bi Thu Jan 1 03:00:00 1970
+++ textproc/mswordview/patches/patch-bi Sun Dec 12 21:47:20 1999
@@ -0,0 +1,169 @@
+--- laolareplace.old.c.orig Mon May 10 15:36:35 1999
++++ laolareplace.old.c Sun Dec 12 21:46:37 1999
+@@ -38,6 +38,7 @@
+ #define MAXBLOCKS 256
+
+ extern FILE *erroroutput;
++extern int testonly;
+
+ struct pps_block
+ {
+@@ -143,31 +144,31 @@
+ ungetc(c,input);
+
+ if(isprint(c)) {
+- fprintf(erroroutput,"File looks like a plain text file.\n");
++ if (!testonly) fprintf(erroroutput,"File looks like a plain text file.\n");
+ return 8;
+ /* check for MS OLE wrapper */
+ } else if(c==0xd0) {
+ Block = malloc(512);
+ if (Block == NULL)
+ {
+- fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512);
++ if (!testonly) fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512);
+ return(5);
+ }
+ /* read header block */
+ if(fread(Block,512,1,input)!=1) {
+- fprintf(erroroutput,"1 ===========> Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"1 ===========> Input file has faulty OLE format\n");
+ return 5;
+ }
+ num_bbd_blocks=(S32)LongInt(Block+0x2c);
+ if ((num_bbd_blocks == 0) || (num_bbd_blocks < 0))
+ {
+- fprintf(erroroutput,"2 ===========> Input file has ridiculous bbd, mem for the depot was %d\n",512*num_bbd_blocks);
++ if (!testonly) fprintf(erroroutput,"2 ===========> Input file has ridiculous bbd, mem for the depot was %d\n",512*num_bbd_blocks);
+ return(5);
+ }
+ BDepot = malloc(512*num_bbd_blocks);
+ if (BDepot == NULL)
+ {
+- fprintf(erroroutput,"2 ===========> couldnt alloc ole mem for the depot of %d\n",512*num_bbd_blocks);
++ if (!testonly) fprintf(erroroutput,"2 ===========> couldnt alloc ole mem for the depot of %d\n",512*num_bbd_blocks);
+ return(5);
+ }
+ s = BDepot;
+@@ -184,19 +185,19 @@
+ {
+ if (0x4c+(i*4) > 512)
+ {
+- fprintf(erroroutput,"2.1 ===========> Input file has faulty bbd\n");
++ if (!testonly) fprintf(erroroutput,"2.1 ===========> Input file has faulty bbd\n");
+ return 5;
+ }
+ FilePos = 512*(LongInt(Block+0x4c+(i*4))+1);
+ if (FilePos > fullen)
+ {
+- fprintf(erroroutput,"2.2 ===========> Input file has faulty bbd\n");
++ if (!testonly) fprintf(erroroutput,"2.2 ===========> Input file has faulty bbd\n");
+ return 5;
+ }
+ fseek(input,FilePos,SEEK_SET);
+ if(fread(s,512,1,input)!=1)
+ {
+- fprintf(erroroutput,"2.3 ===========> Input file has faulty bbd\n");
++ if (!testonly) fprintf(erroroutput,"2.3 ===========> Input file has faulty bbd\n");
+ return 5;
+ }
+ s += 0x200;
+@@ -209,7 +210,7 @@
+ sbd_list[len] = LongInt(BDepot+(sbd_list[len-1]*4));
+ else
+ {
+- fprintf(erroroutput,"3 ===========> Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"3 ===========> Input file has faulty OLE format\n");
+ return(5);
+ }
+ if(sbd_list[len]==-2) break;
+@@ -217,7 +218,7 @@
+ SDepot = malloc(512*len);
+ if (SDepot== NULL)
+ {
+- fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512*len);
++ if (!testonly) fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512*len);
+ return(5);
+ }
+ s = SDepot;
+@@ -226,7 +227,7 @@
+ FilePos = 512 *(sbd_list[i]+1);
+ fseek(input,FilePos,SEEK_SET);
+ if(fread(s,512,1,input)!=1) {
+- fprintf(erroroutput,"3 ===========> Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"3 ===========> Input file has faulty OLE format\n");
+ return 5;
+ }
+ s += 0x200;
+@@ -236,7 +237,7 @@
+ {
+ if ( ((root_list[len-1]*4) >= (512*num_bbd_blocks)) || ( (root_list[len-1]*4) < 0) )
+ {
+- fprintf(erroroutput,"3.1 ===========> Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"3.1 ===========> Input file has faulty OLE format\n");
+ return(5);
+ }
+ root_list[len] = LongInt(BDepot+(root_list[len-1]*4));
+@@ -245,7 +246,7 @@
+ Root = malloc(512*len);
+ if (Root == NULL)
+ {
+- fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512*len);
++ if (!testonly) fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",512*len);
+ return(5);
+ }
+ s = Root;
+@@ -254,7 +255,7 @@
+ FilePos = 512 *(root_list[i]+1);
+ fseek(input,FilePos,SEEK_SET);
+ if(fread(s,512,1,input)!=1) {
+- fprintf(erroroutput,"4 ===========> Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"4 ===========> Input file has faulty OLE format\n");
+ return 5;
+ }
+ s += 0x200;
+@@ -264,7 +265,7 @@
+ pps_list = malloc(len*4*sizeof(pps_entry *));
+ if (pps_list == NULL)
+ {
+- fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",len*4*sizeof(pps_entry *));
++ if (!testonly) fprintf(erroroutput,"1 ===========> probable corrupt ole file, unable to allocate %d bytes\n",len*4*sizeof(pps_entry *));
+ return(5);
+ }
+ for(j=0;j Input file has faulty OLE format\n");
++ if (!testonly) fprintf(erroroutput,"5 ===========> Input file has faulty OLE format\n");
+ return(5);
+ }
+ fwrite(Block,bytes,1,OLEfile);
+@@ -396,7 +397,7 @@
+ return 0;
+ } else {
+ /* not a OLE file! */
+- fprintf(erroroutput,"7 ===========> Input file is not an OLE file\n");
++ if (!testonly) fprintf(erroroutput,"7 ===========> Input file is not an OLE file\n");
+ return 8;
+ }
+ }