summaryrefslogtreecommitdiff
path: root/chat/ircII/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'chat/ircII/patches/patch-ab')
-rw-r--r--chat/ircII/patches/patch-ab95
1 files changed, 95 insertions, 0 deletions
diff --git a/chat/ircII/patches/patch-ab b/chat/ircII/patches/patch-ab
new file mode 100644
index 00000000000..90c38c2a6b4
--- /dev/null
+++ b/chat/ircII/patches/patch-ab
@@ -0,0 +1,95 @@
+$NetBSD: patch-ab,v 1.5 2001/10/02 14:13:38 mrg Exp $
+
+Index: source/screen.c
+===================================================================
+RCS file: /home/cvs/ircii/source/screen.c,v
+retrieving revision 1.119
+retrieving revision 1.121
+diff -p -c -r1.119 -r1.121
+*** source/screen.c 2001/05/19 20:57:36 1.119
+--- source/screen.c 2001/07/20 00:42:39 1.121
+*************** output_line(str, result, startpos)
+*** 688,695 ****
+ /* parse all consequent colour settings */
+ int fg, bg;
+
+! fg = *++ptr - 1;
+! bg = *++ptr - 1;
+ if (fg < 16)
+ fgcolour = fg;
+ if (bg < 16)
+--- 688,705 ----
+ /* parse all consequent colour settings */
+ int fg, bg;
+
+! if (!*++ptr)
+! {
+! str = ptr;
+! break;
+! }
+! fg = *ptr - 1;
+! if (!*++ptr)
+! {
+! str = ptr;
+! break;
+! }
+! bg = *ptr - 1;
+ if (fg < 16)
+ fgcolour = fg;
+ if (bg < 16)
+*************** output_line(str, result, startpos)
+*** 712,719 ****
+ }
+ if (written > CO)
+ len = len - (written - CO);
+! if (!startpos)
+! fwrite(str, len, 1, current_screen->fpout);
+
+ if (!underline)
+ {
+--- 722,729 ----
+ }
+ if (written > CO)
+ len = len - (written - CO);
+! if (!startpos && len > 0)
+! fwrite(str, (size_t)len, 1, current_screen->fpout);
+
+ if (!underline)
+ {
+*************** output_line(str, result, startpos)
+*** 747,758 ****
+ }
+ if (written > CO)
+ len = len - (written - CO);
+! if (!startpos)
+! fwrite(str, len, 1, current_screen->fpout);
+ do
+ {
+! charset_type = *++ptr;
+! charset = *++ptr;
+ } while (ptr[1] == CHARSET_TAG && ptr++);
+ display_charset(charset_type, charset);
+ str = ++ptr;
+--- 757,778 ----
+ }
+ if (written > CO)
+ len = len - (written - CO);
+! if (!startpos && len > 0)
+! fwrite(str, (size_t)len, 1, current_screen->fpout);
+ do
+ {
+! if (!*++ptr)
+! {
+! str = ptr;
+! break;
+! }
+! charset_type = *ptr;
+! if (!*++ptr)
+! {
+! str = ptr;
+! break;
+! }
+! charset = *ptr;
+ } while (ptr[1] == CHARSET_TAG && ptr++);
+ display_charset(charset_type, charset);
+ str = ++ptr;