Fix method for creating activities string in PIDF bodies.
authorMark Michelson <mmichelson@digium.com>
Thu, 29 Aug 2013 22:54:05 +0000 (22:54 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 29 Aug 2013 22:54:05 +0000 (22:54 +0000)
commitb5f61b560894bb632665828ce1809cd873446433
treef4b3afe52a1e39cd91d158cbd66152f91a55dedd
parentd7b9a702d8c3705bf6c736d2df166f51981fc006
Fix method for creating activities string in PIDF bodies.

The previous method did not allocate enough space to create
the entire string, but adjusted the string's slen value to
be larger than the actual allocation. This resulted in garbled
text in NOTIFY requests from Asterisk.

This method allocates the proper amount of space first and then
writes the content into the buffer.
........

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

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