mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Avoid PATH_MAX.
Not available in ps3toolchain, and this avoids a stack buffer :)
This commit is contained in:
parent
9250eb83bf
commit
68feab89f9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue