[asterisk-commits] eliel: branch group/appdocsxml r143136 - /team/group/appdocsxml/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 15 13:51:03 CDT 2008


Author: eliel
Date: Mon Sep 15 13:51:03 2008
New Revision: 143136

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143136
Log:
We where not counting the last char in the <para> elements.
(Also remove some spaces used for indenting the code and replace them with tabs).


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=143136&r1=143135&r2=143136
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Mon Sep 15 13:51:03 2008
@@ -3489,8 +3489,8 @@
 		return ret;
 	}
 
-        *buffer = ast_realloc(*buffer, *len + xmldoc_postbrlen(tabs) + 1);
-        *len += sprintf(*buffer + *len, "%s", tabs);
+	*buffer = ast_realloc(*buffer, *len + xmldoc_postbrlen(tabs) + 1);
+	*len += sprintf(*buffer + *len, "%s", tabs);
 
 	ret = 1;
 
@@ -3510,8 +3510,8 @@
 					*len += sprintf(*buffer + *len, " <%s>%s</%s>", tmp->AST_XML_NAME, cleantext, tmp->AST_XML_NAME);
 				} else {
 					*buffer = ast_realloc(*buffer, *len + strlen(cleantext) + 1);
-					ast_copy_string(*buffer + *len, cleantext, strlen(cleantext));
-					*len += strlen(cleantext) - 1;
+					ast_copy_string(*buffer + *len, cleantext, strlen(cleantext) + 1);
+					*len += strlen(cleantext);
 				}
 				ast_free(cleantext);
 				ret = 2;
@@ -3521,7 +3521,7 @@
 	}
 
 	*buffer = ast_realloc(*buffer, *len + xmldoc_postbrlen(posttabs) + 1);
-        *len += sprintf(*buffer + *len, "%s", posttabs);
+	*len += sprintf(*buffer + *len, "%s", posttabs);
 
 	return ret;
 }
@@ -3832,7 +3832,7 @@
 			node = node->AST_XML_NEXT;
 			continue;
 		}
-			
+
 		node = node->AST_XML_NEXT;
 	}
 




More information about the asterisk-commits mailing list