git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3776
d7cf8633-e32d-0410-b094-
e92efae38249
- char* netpath;
-
- netpath = va ("%s/%s", search->filename, name);
+ char netpath[MAX_OSPATH];
+ snprintf(netpath, sizeof(netpath), "%s/%s", search->filename, name);
if (FS_SysFileExists (netpath))
{
if (!quiet)
if (FS_SysFileExists (netpath))
{
if (!quiet)
// Found in the filesystem?
if (i < 0)
// Found in the filesystem?
if (i < 0)
- return FS_OpenRead (va ("%s/%s", search->filename, filename), -1, -1);
+ {
+ char netpath[MAX_OSPATH];
+ snprintf(netpath, sizeof(netpath), "%s/%s", search->filename, filename);
+ return FS_OpenRead(netpath, -1, -1);
+ }
// So, we found it in a package...
packfile = &search->pack->files[i];
// So, we found it in a package...
packfile = &search->pack->files[i];