Fix string growth algorithm for XML presence bodies.
authorMark Michelson <mmichelson@digium.com>
Tue, 17 Jun 2014 16:35:04 +0000 (16:35 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 17 Jun 2014 16:35:04 +0000 (16:35 +0000)
commit351db2033c4565c6afbfdcd073a7d2fb0f70b983
treef3d31968a7331cbdaf091c6cd86982e641e8b437
parent163c734ae7c3a208e6753e0b37f5228e438a67e3
Fix string growth algorithm for XML presence bodies.

pjpidf_print() does not return < 0 if there is not enough
room for the document to be printed. Rather, it returns
39, the length of the XML prolog.

The algorithm also had a bug in that it would return if
it attempted to grow the string larger.
........

Merged revisions 416442 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@416444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_pidf_body_generator.c
res/res_pjsip_xpidf_body_generator.c