aboutsummaryrefslogtreecommitdiff
path: root/print/rtf2latex
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-05-15 20:01:42 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-05-15 20:01:42 +0000
commitd1d5469307bb4252157b9514b95fe3281e778cf7 (patch)
treecf4e09955b6ece040cab78f83e5fbb6b62cb0505 /print/rtf2latex
parent96a5fd783f455f475d724659586fb4b85c226a3d (diff)
downloadports-d1d5469307bb4252157b9514b95fe3281e778cf7.tar.gz
ports-d1d5469307bb4252157b9514b95fe3281e778cf7.zip
Notes
Diffstat (limited to 'print/rtf2latex')
-rw-r--r--print/rtf2latex/files/patch-reader.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/print/rtf2latex/files/patch-reader.c b/print/rtf2latex/files/patch-reader.c
new file mode 100644
index 000000000000..bf182c2f8ea7
--- /dev/null
+++ b/print/rtf2latex/files/patch-reader.c
@@ -0,0 +1,28 @@
+--- reader.c.orig Sun May 12 00:57:41 2002
++++ reader.c Sun May 12 01:00:39 2002
+@@ -118,7 +118,7 @@
+ static RTFStyle *styleList = (RTFStyle *) NULL;
+
+
+-static FILE *rtffp = stdin;
++static FILE *rtffp = NULL;
+
+
+ /*
+@@ -135,6 +135,7 @@
+ RTFStyle *sp;
+ RTFStyleElt *eltList, *ep;
+
++ rtffp = stdin;
+ /* initialize lookup table */
+ LookupInit ();
+
+@@ -584,6 +585,8 @@
+ {
+ int c;
+
++ if (rtffp == NULL)
++ rtffp = stdin;
+ if ((c = getc (rtffp)) != EOF)
+ {
+ if (c & 0x80)