blob: b8f4eef942645120302c42c81a28cd1fca1a5dc3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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)
|