From b0af713643e3c37ef7ff0b3d9e6bcc8bdd0449d7 Mon Sep 17 00:00:00 2001 From: blymn Date: Sat, 25 May 2002 14:17:06 +0000 Subject: Added fix provided by xs@kittenz.org to prevent irssi crashing. This fixes pr#15510. --- chat/irssi/patches/patch-aa | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 chat/irssi/patches/patch-aa (limited to 'chat/irssi/patches') diff --git a/chat/irssi/patches/patch-aa b/chat/irssi/patches/patch-aa new file mode 100644 index 00000000000..88b1d0237cf --- /dev/null +++ b/chat/irssi/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.3 2002/05/25 14:17:06 blymn Exp $ + +--- src/fe-text/tparm.c.orig Sat Feb 9 08:40:12 2002 ++++ src/fe-text/tparm.c +@@ -247,7 +247,7 @@ + argcnt = 0; + pos = 0; + termcap = 1; +- while (*sp != '\0') { ++ while ((sp != NULL) && (*sp != '\0')) { + switch(*sp) { + case '\\': + if (scan_for) { -- cgit v1.2.3