H-uru/Plasma — pull request #253 by zrax (2013-01-07 02:33:37+00:00)
Title: Fix a major plStringStream bug, and add an SSO-like optimization to it

While cleaning C string uses around Plasma, I discovered a major bug in plStringStream that could cause it to crash if the appended content size exceeded a single buffer size increase. This fixes that, while also keeping the first buffer (256 chars) in the stack to improve performance when replacing many of the static buffers currently being strcatted.