summaryrefslogtreecommitdiff
path: root/irc/bitchx/files/patch-funny.c
blob: fa7eb1217ad0e9a16bc127917e7ca1974be48a98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
 	{