SHINDIG-1935
Delivered For Yun Zhi Lin
Fix sizeof warnings when parsing templates with large amounts of text

git-svn-id: https://svn.apache.org/repos/asf/shindig/trunk@1553211 13f79535-47bb-0310-9956-ffa450edef68