cocos2d/cocos2d-x — pull request #744 by dumganhar (2012-03-03 04:34:39+00:00)
Title: fixed #1007: Allocate one more byte of '\0' to terminate string in CCFileUtils::getFileData.

There is no problem when we use CCFileUtils::getFileData to get binary data, however, in some situation(e.g. get content of js files), it should be dealt as a string. So we need to allocate just one more byte to achieve both getting binary data and string data.
BTW, the added byte '\0' will not be added to length for return, so it will not affect the old usage of this function.