|
Line 0
Link Here
|
|
|
1 |
--- reader.c.orig Sun May 12 00:57:41 2002 |
| 2 |
+++ reader.c Sun May 12 01:00:39 2002 |
| 3 |
@@ -118,7 +118,7 @@ |
| 4 |
static RTFStyle *styleList = (RTFStyle *) NULL; |
| 5 |
|
| 6 |
|
| 7 |
-static FILE *rtffp = stdin; |
| 8 |
+static FILE *rtffp = NULL; |
| 9 |
|
| 10 |
|
| 11 |
/* |
| 12 |
@@ -135,6 +135,7 @@ |
| 13 |
RTFStyle *sp; |
| 14 |
RTFStyleElt *eltList, *ep; |
| 15 |
|
| 16 |
+ rtffp = stdin; |
| 17 |
/* initialize lookup table */ |
| 18 |
LookupInit (); |
| 19 |
|
| 20 |
@@ -584,6 +585,8 @@ |
| 21 |
{ |
| 22 |
int c; |
| 23 |
|
| 24 |
+ if (rtffp == NULL) |
| 25 |
+ rtffp = stdin; |
| 26 |
if ((c = getc (rtffp)) != EOF) |
| 27 |
{ |
| 28 |
if (c & 0x80) |