cocos2d/cocos2d-x — pull request #3847 by langresser (2013-09-26 07:33:56+00:00)
Title: fix crash by using getFileData to read text files.

the buffer got by getFileData is not end by zero, if use strlen and so on then app may crash.(eg. CCUserDefault->getXMLNodeForKey)
I think it is safe to alloc a buffer that end by zero,and return then real size. image data is also ok.