HI! This is my first post.
I have a question.
The method getFileData at CCFileUtils
@
…
FILE **fp = fopen;
CC_BREAK_IF;
fseek;
**pSize = ftell(fp);
fseek(fp,0,SEEK_SET);
pBuffer = new unsigned char[(**pSize)];
**pSize = fread(pBuffer,sizeof(unsigned char), **pSize,fp);
fclose;
…
@
I changed like this
@
…
FILE**fp = fopen(pszFileName, pszMode);
CC_BREAK_IF(!fp);
fseek(fp,0,SEEK_END);
**pSize = ftell;
fseek;
pBuffer = new unsigned char;
bzero+1);
**pSize = fread(pBuffer,sizeof(unsigned char), *pSize,fp);
fclose(fp);
…
@
I think the buffer size is so fit.
If my fault, so sorry.