[Freeswitch-trunk] [commit] r3674 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Dec 15 13:02:56 EST 2006
Author: anthm
Date: Fri Dec 15 13:02:54 2006
New Revision: 3674
Modified:
freeswitch/trunk/src/switch_event.c
Log:
fix mem issue
Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c (original)
+++ freeswitch/trunk/src/switch_event.c Fri Dec 15 13:02:54 2006
@@ -600,7 +600,7 @@
{
switch_size_t len = 0;
switch_event_header_t *hp;
- switch_size_t llen = 0, dlen = 0, blocksize = 512, encode_len = 1024, new_len = 0;
+ switch_size_t llen = 0, dlen = 0, blocksize = 512, encode_len = 1536, new_len = 0;
char *buf;
char *encode_buf = NULL; /* used for url encoding of variables to make sure unsafe things stay out of the serialzed copy */
@@ -650,7 +650,7 @@
/* handle any bad things in the string like newlines : etc that screw up the serialized format */
switch_url_encode(hp->value, encode_buf, encode_len - 1);
- llen = strlen(hp->name) + strlen(encode_buf) + 2;
+ llen = strlen(hp->name) + strlen(encode_buf) + 8;
if ((len + llen) > dlen) {
char *m;
More information about the Freeswitch-trunk
mailing list