[asterisk-commits] eliel: branch group/appdocsxml r135596 - /team/group/appdocsxml/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 4 18:35:14 CDT 2008
Author: eliel
Date: Mon Aug 4 18:35:13 2008
New Revision: 135596
URL: http://svn.digium.com/view/asterisk?view=rev&rev=135596
Log:
We need to allocate one more byte, cause of the '\n' added.
Modified:
team/group/appdocsxml/main/pbx.c
Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=135596&r1=135595&r2=135596
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Mon Aug 4 18:35:13 2008
@@ -2878,7 +2878,7 @@
if (!strcasecmp((char *)tmp->AST_XML_NAME, "para")) {
tmptext = ast_xml_get_text(documentation_tree, tmp);
if (tmptext) {
- ret = ast_realloc(ret, len + strlen(tmptext) + 1);
+ ret = ast_realloc(ret, len + strlen(tmptext) + 2);
len += sprintf(ret + len, "%s\n", tmptext);
ast_xml_free_text(tmptext);
}
More information about the asterisk-commits
mailing list