[Common] Fix up extension for android

This commit is contained in:
zilmar 2016-05-15 20:20:55 +10:00
parent 91f36ac8f9
commit d7dd450bef
1 changed files with 4 additions and 0 deletions

View File

@ -602,6 +602,10 @@ void CPath::SetComponents(const char * lpszDirectory, const char * lpszName, con
}
if (lpszExtension != NULL)
{
if (lpszExtension[0] != '.')
{
strncat(buff_fullname,".",sizeof(buff_fullname));
}
strncat(buff_fullname,lpszExtension,sizeof(buff_fullname));
}
buff_fullname[sizeof(buff_fullname) - 1] = 0; //Make sure it is null terminated