Fixed String conversion error.

svn-id: r50370
This commit is contained in:
Alejandro Marzini 2010-06-27 06:10:09 +00:00
parent 936f558579
commit c2bc48a772

View file

@ -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;
} }