Fixed String conversion error.
svn-id: r50370
This commit is contained in:
parent
936f558579
commit
c2bc48a772
1 changed files with 2 additions and 2 deletions
|
@ -58,9 +58,9 @@ Common::String OSystem_POSIX::getDefaultConfigFileName() {
|
||||||
// to the HOME directory of the user.
|
// to the HOME directory of the user.
|
||||||
const char *home = getenv("HOME");
|
const char *home = getenv("HOME");
|
||||||
if (home != NULL && strlen(home) < MAXPATHLEN)
|
if (home != NULL && strlen(home) < MAXPATHLEN)
|
||||||
snprintf(configFile, MAXPATHLEN, "%s/%s", home, _baseConfigName);
|
snprintf(configFile, MAXPATHLEN, "%s/%s", home, _baseConfigName.c_str());
|
||||||
else
|
else
|
||||||
strcpy(configFile, _baseConfigName);
|
strcpy(configFile, _baseConfigName.c_str());
|
||||||
|
|
||||||
return configFile;
|
return configFile;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue