summaryrefslogtreecommitdiff
path: root/irc/epic5/files/patch-ctcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc/epic5/files/patch-ctcp.c')
-rw-r--r--irc/epic5/files/patch-ctcp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/irc/epic5/files/patch-ctcp.c b/irc/epic5/files/patch-ctcp.c
new file mode 100644
index 000000000000..b8f4eef94264
--- /dev/null
+++ b/irc/epic5/files/patch-ctcp.c
@@ -0,0 +1,12 @@
+--- source/ctcp.c.orig Tue Dec 5 01:11:56 2000
++++ source/ctcp.c Tue May 27 16:55:04 2003
+@@ -897,7 +897,8 @@
+ int len;
+
+ /* Make sure that the final \001 doesnt get truncated */
+- len = IRCD_BUFFER_SIZE - (12 + strlen(to));
++ if ((len = IRCD_BUFFER_SIZE - (12 + strlen(to))) < 0)
++ return;
+ putbuf2 = alloca(len);
+
+ if (format)