summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-bj
diff options
context:
space:
mode:
Diffstat (limited to 'chat/icb/patches/patch-bj')
-rw-r--r--chat/icb/patches/patch-bj22
1 files changed, 22 insertions, 0 deletions
diff --git a/chat/icb/patches/patch-bj b/chat/icb/patches/patch-bj
new file mode 100644
index 00000000000..53b6947fe2a
--- /dev/null
+++ b/chat/icb/patches/patch-bj
@@ -0,0 +1,22 @@
+$NetBSD: patch-bj,v 1.1 2006/05/15 15:33:00 christos Exp $
+
+--- icb/getswitch.c.orig 1995-02-24 16:20:22.000000000 -0500
++++ icb/getswitch.c 2006-05-15 10:58:13.000000000 -0400
+@@ -1,6 +1,8 @@
+ #include <stdio.h>
+ #include <strings.h>
+ #include <string.h>
++#include <stdlib.h>
++#include <unistd.h>
+
+ /* getswitch - parse multicharacter option arguments.
+ */
+@@ -43,7 +45,7 @@
+ if (thisswitch != retswitch)
+ free(thisswitch);
+
+- thisswitch = (char *)malloc(strlen(*switchv)+1);
++ thisswitch = malloc(strlen(*switchv)+1);
+ strcpy(thisswitch, *switchv);
+ length = strlen(arg);
+