Avoid PATH_MAX.

Not available in ps3toolchain, and this avoids a stack buffer :)
This commit is contained in:
Bill Currie 2012-08-18 21:44:02 +09:00
parent 9250eb83bf
commit 68feab89f9

View file

@ -129,13 +129,13 @@ locs_add (const vec3_t location, const char *name)
void
locs_load (const char *filename)
{
char tmp[PATH_MAX];
const char *tmp;
char *t1, *t2;
const char *line;
vec3_t loc;
QFile *file;
snprintf (tmp, sizeof (tmp), "maps/%s", filename);
tmp = va ("maps/%s", filename);
QFS_FOpenFile (tmp, &file);
if (!file) {
Sys_Printf ("Couldn't load %s\n", tmp);