summaryrefslogtreecommitdiff
path: root/irc/bitchx/files/patch-funny.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc/bitchx/files/patch-funny.c')
-rw-r--r--irc/bitchx/files/patch-funny.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/irc/bitchx/files/patch-funny.c b/irc/bitchx/files/patch-funny.c
new file mode 100644
index 000000000000..fa7eb1217ad0
--- /dev/null
+++ b/irc/bitchx/files/patch-funny.c
@@ -0,0 +1,14 @@
+--- source/funny.c 2003-02-20 16:37:07.000000000 +0000
++++ source/funny.c 2003-02-20 16:39:13.000000000 +0000
+@@ -261,6 +261,11 @@
+ channel = Args[1];
+ line = Args[2];
+
++ if (channel == NULL || line == NULL) {
++ bitchsay("Invalid number of arguments for %s", __FUNCTION__);
++ return;
++ }
++
+ ptr = line;
+ while (*ptr)
+ {