Skip to content

Commit

Permalink
Merge pull request #707 from moadib/qnx_fileutils
Browse files Browse the repository at this point in the history
fixed #968: Fixed a bug about "Out of bound" in CCFileUtils::getWriteablePath() for BlackBerry
  • Loading branch information
dumganhar committed Feb 5, 2012
2 parents 7a57349 + f5b8aa7 commit b32b4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2dx/platform/qnx/CCFileUtils_qnx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ std::string CCFileUtils::getWriteablePath()
char cwd[FILENAME_MAX];

getcwd(cwd, FILENAME_MAX - 1);
cwd[FILENAME_MAX] = '\0';
cwd[FILENAME_MAX-1] = '\0';

std::string path = cwd;
path += "/data/";
Expand Down

0 comments on commit b32b4ee

Please sign in to comment.