TCHAR mydocsdir[MAX_PATH + 1];
if(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, mydocsdir))
{
- snprintf(buf, "%s/My Games", mydocsdir);
+ snprintf(buf, sizeof(buf), "%s/My Games", mydocsdir);
return buf;
}
return NULL;
void LokiInitPaths( char *argv0 )
{
#ifndef Q_UNIX
+ char *home;
+
/* this is kinda crap, but hey */
strcpy( installPath, "../" );