aboutsummaryrefslogtreecommitdiff
path: root/textproc/rtfreader
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-25 17:29:54 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-25 17:29:54 +0000
commit68ccb1215de9f94a999c1d9328f1c430226f1425 (patch)
tree1c28aa1f25904dc129790e8aed3ca20ca598d226 /textproc/rtfreader
parent1303fc4bdd4afe4e52d37ce0dffd764c71a53937 (diff)
downloadports-68ccb1215de9f94a999c1d9328f1c430226f1425.tar.gz
ports-68ccb1215de9f94a999c1d9328f1c430226f1425.zip
Notes
Diffstat (limited to 'textproc/rtfreader')
-rw-r--r--textproc/rtfreader/Makefile1
-rw-r--r--textproc/rtfreader/files/patch-rtfreader31
2 files changed, 32 insertions, 0 deletions
diff --git a/textproc/rtfreader/Makefile b/textproc/rtfreader/Makefile
index e31ed93916ef..40081a851b23 100644
--- a/textproc/rtfreader/Makefile
+++ b/textproc/rtfreader/Makefile
@@ -7,6 +7,7 @@
PORTNAME= rtfreader
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.fiction.net/blong/programs/
DISTNAME= ms-rtf
diff --git a/textproc/rtfreader/files/patch-rtfreader b/textproc/rtfreader/files/patch-rtfreader
new file mode 100644
index 000000000000..2390f5ef28ce
--- /dev/null
+++ b/textproc/rtfreader/files/patch-rtfreader
@@ -0,0 +1,31 @@
+*** rtfreadr.c Thu Mar 6 00:06:26 1997
+--- rtfreadr.c.fixed Wed Mar 24 15:51:37 2004
+***************
+*** 107,119 ****
+ {
+ if (ch < 'a' || ch > 'f')
+ return ecInvalidHex;
+! b += (char) ch - 'a';
+ }
+ else
+ {
+ if (ch < 'A' || ch > 'F')
+ return ecInvalidHex;
+! b += (char) ch - 'A';
+ }
+ }
+ cNibble--;
+--- 107,119 ----
+ {
+ if (ch < 'a' || ch > 'f')
+ return ecInvalidHex;
+! b += (char) ch - 'a'+10;
+ }
+ else
+ {
+ if (ch < 'A' || ch > 'F')
+ return ecInvalidHex;
+! b += (char) ch - 'A'+10;
+ }
+ }
+ cNibble--;