mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
work towards a more secure qfs
This commit is contained in:
parent
68d2167c9e
commit
851d203916
19 changed files with 193 additions and 167 deletions
|
@ -353,7 +353,8 @@ locs_loc (void)
|
|||
if (!mapname)
|
||||
Sys_Error ("Can't duplicate mapname!");
|
||||
map_to_loc (cl.worldmodel->name,mapname);
|
||||
snprintf (locfile, sizeof (locfile), "%s/%s", qfs_gamedir_path, mapname);
|
||||
snprintf (locfile, sizeof (locfile), "%s/%s/%s", fs_userpath->string,
|
||||
qfs_gamedir->dir.def, mapname);
|
||||
free(mapname);
|
||||
|
||||
if (strcasecmp (Cmd_Argv(1),"save") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue