when calling this function to append to a dynamic string and the buffer was not
authorRussell Bryant <russell@russellbryant.com>
Sun, 3 Sep 2006 22:56:01 +0000 (22:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 3 Sep 2006 22:56:01 +0000 (22:56 +0000)
commit3057660a792a4b8f895cee6987932af6f5564ce3
tree458dea97b3eccedb9a2547c50809cad4901d0c2a
parentffd9281db9493acb53e79240a5bcac188531e44a
when calling this function to append to a dynamic string and the buffer was not
large enough and had to be reallocated, cut off the partially appended data.
Otherwise, the function will get called over and over again appending to the
end every time and never thinking it has enough room.

Thanks to jmls for access to his machine for debugging!

(issue #7691)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/utils.c