summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-02-08 21:18:38 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-02-08 21:18:38 +0000
commit1fb72c636102a76fe420e7d967a513fed0ee98b8 (patch)
treed252b7bf6f79f7263d419497ab4b1af350a770e4 /sys-apps/groff/files
parentAdded hppa to keywords. (diff)
downloadgentoo-2-1fb72c636102a76fe420e7d967a513fed0ee98b8.tar.gz
gentoo-2-1fb72c636102a76fe420e7d967a513fed0ee98b8.tar.bz2
gentoo-2-1fb72c636102a76fe420e7d967a513fed0ee98b8.zip
bugfix
Diffstat (limited to 'sys-apps/groff/files')
-rw-r--r--sys-apps/groff/files/digest-groff-1.18.1-r11
-rw-r--r--sys-apps/groff/files/groff-1.18.1-no-color-segfault.patch33
2 files changed, 34 insertions, 0 deletions
diff --git a/sys-apps/groff/files/digest-groff-1.18.1-r1 b/sys-apps/groff/files/digest-groff-1.18.1-r1
new file mode 100644
index 000000000000..94400bd5b25d
--- /dev/null
+++ b/sys-apps/groff/files/digest-groff-1.18.1-r1
@@ -0,0 +1 @@
+MD5 4c7a1b478d230696f14743772f31639f groff-1.18.1.tar.gz 2250463
diff --git a/sys-apps/groff/files/groff-1.18.1-no-color-segfault.patch b/sys-apps/groff/files/groff-1.18.1-no-color-segfault.patch
new file mode 100644
index 000000000000..fee3e6ad55d5
--- /dev/null
+++ b/sys-apps/groff/files/groff-1.18.1-no-color-segfault.patch
@@ -0,0 +1,33 @@
+--- groff-1.18.1/src/roff/troff/node.cc.orig 2003-01-08 20:29:35.000000000 +0200
++++ groff-1.18.1/src/roff/troff/node.cc 2003-01-08 22:37:46.000000000 +0200
+@@ -992,8 +992,10 @@
+ if (c == '\0') {
+ flush_tbuf();
+ do_motion();
+- glyph_color(gcol);
+- fill_color(fcol);
++ if (gcol)
++ glyph_color(gcol);
++ if (fcol)
++ fill_color(fcol);
+ check_charinfo(tf, ci);
+ if (ci->numbered()) {
+ put('N');
+@@ -1162,7 +1164,7 @@
+
+ void troff_output_file::fill_color(color *col)
+ {
+- if ((current_fill_color == col) || !color_flag)
++ if ((current_fill_color == col) || !color_flag || !col)
+ return;
+ flush_tbuf();
+ put("DF");
+@@ -1210,7 +1212,7 @@
+
+ void troff_output_file::glyph_color(color *col)
+ {
+- if ((current_glyph_color == col) || !color_flag)
++ if ((current_glyph_color == col) || !color_flag || !col)
+ return;
+ flush_tbuf();
+ put("m");