aboutsummaryrefslogtreecommitdiffstats
path: root/irc/irssi/files
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2007-11-12 06:33:05 +0800
committervanilla <vanilla@FreeBSD.org>2007-11-12 06:33:05 +0800
commit77b4f2d64d991b4cf42bb55b9f8d01b648ba02a2 (patch)
tree3f51c9ca0d8e0405efb0436c9221a6060c8f1c81 /irc/irssi/files
parent7cdfc2e521d8a85e2e8a662baed352047f2b4056 (diff)
downloadfreebsd-ports-gnome-77b4f2d64d991b4cf42bb55b9f8d01b648ba02a2.tar.gz
freebsd-ports-gnome-77b4f2d64d991b4cf42bb55b9f8d01b648ba02a2.tar.zst
freebsd-ports-gnome-77b4f2d64d991b4cf42bb55b9f8d01b648ba02a2.zip
Fix coredump with silc-irssi-plugin.
PR: ports/117871 Submitted by: Wesley Shields <wxs.at.atarininja.org> Approved by: portmgr@ (linimon)
Diffstat (limited to 'irc/irssi/files')
-rw-r--r--irc/irssi/files/patch-src_fe-common_irc_fe-irc-messages.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/irc/irssi/files/patch-src_fe-common_irc_fe-irc-messages.c b/irc/irssi/files/patch-src_fe-common_irc_fe-irc-messages.c
new file mode 100644
index 000000000000..8d8e409c8563
--- /dev/null
+++ b/irc/irssi/files/patch-src_fe-common_irc_fe-irc-messages.c
@@ -0,0 +1,11 @@
+--- src/fe-common/irc/fe-irc-messages.c.orig Sat Oct 20 14:45:59 2007
++++ src/fe-common/irc/fe-irc-messages.c Sat Oct 20 14:46:21 2007
+@@ -44,7 +44,7 @@ static const char *skip_target(IRC_SERVER_REC *server,
+ const char *val, *chars;
+
+ /* Quick check */
+- if (server->prefix[(int)(unsigned char)*target] == 0)
++ if (server == NULL || server->prefix[(int)(unsigned char)*target] == 0)
+ return target;
+
+ /* Hack: for bahamut 1.4 which sends neither STATUSMSG nor