pkgsrc/chat/bitchx/patches/patch-ad
adam 8f3ae2f449 Changes 1.1:
* Fixed bug with using [$8] in expressions (Reported by BlackJac)
  (Patch from |Rain|) (BugID: 64) (powuh)
* Fixed bug in /set show_end_of_msgs.  When OFF prevented hooking
  of some end_of_msg numerics.  (Reported by BlackJac)
  (Patch from |Rain|) (BugID: 51) (powuh)
* Fixed incorrect ordering of operations in screen.c which
  caused an off-by-one access at the end ofthe buffer.
  (Patch from |Rain|) (BugID: 48) (powuh)
* Fixed ischanvoice() to be compatiable with epic.  Maintained
  reverse functionality as not to break existing scripts.
  (Patch from |Rain|) (BugID: 20) (powuh)
* Fixed segfault with convert_output_format not honoring
  MAX_RECURSE. (Patch from |Rain|) (powuh)
* Fixed possble rouge server exploit:
  If a rogue server sends us a ctcp request from an extremely large
  nickname (over about 512 bytes), we may attempt to alloca() a
  negative value, which under gcc will return a invalid pointer the
  contents of which will then be overwritten. (Reported by O_6)
  (Patch from |Rain|) (powuh)
* Fixed segfault with channel mode parsing. (Patch from O_6) (powuh)
* Removed auto_resume script, it's not needed any more (caf).
* Fixed string copying snafu in gtkbitchx.c (reported by Huey) (caf).
* Added STATUS_USER20 to STATUS_USER39 (patch from BlackJac) (caf).
2004-11-26 11:38:14 +00:00

13 lines
424 B
Text

$NetBSD: patch-ad,v 1.3 2004/11/26 11:38:14 adam Exp $
--- source/screen.c.orig 2003-07-31 07:01:08.000000000 +0000
+++ source/screen.c
@@ -2974,6 +2974,8 @@ static char retbuf[512];
if (back == 58)
strcat(retbuf, current_term->TI_sgrstrs[TERM_SGR_BLINK_ON - 1]);
+ if (fore > 57)
+ fore = last_fore;
if (fore > -1)
strcat(retbuf, current_term->TI_forecolors[fore_conv[fore]]);
if (back > -1 && back < 58)