FSCORE-676 Buffer too small

This commit is contained in:
Jeff Lenk committed 2010-09-23 08:15:55 -05:00
1 parent b02c69bba9
commit 0cc28f37fb
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
if (globals.encode == ENCODING_TEXTXML) {
headers = curl_slist_append(headers, "Content-Type: text/xml");
} else if (globals.encode) {
switch_size_t need_bytes = strlen(xml_text) * 3;
switch_size_t need_bytes = strlen(xml_text) * 3 + 1;
xml_text_escaped = malloc(need_bytes);
switch_assert(xml_text_escaped);