[bspc.c] Change directory variables to have static storage; they're

quite large for automatic storage.
This commit is contained in:
Thomas Köppe 2016-08-02 09:55:43 +01:00 committed by Garux
parent 13a3b91cc3
commit fee0e36602

View File

@ -222,7 +222,7 @@ void Win_Map2Bsp(char *bspfilename)
sprintf(path, "%s.lin", source);
remove(path);
strcpy(name, ExpandArg(bspfilename));
strcpy(name, ExpandArg(bspfilename));
DefaultExtension(name, ".map"); // might be .reg
Q2_AllocMaxBSP();
@ -507,8 +507,8 @@ quakefile_t *GetArgumentFiles(int argc, char *argv[], int *i, char *ext)
int main (int argc, char **argv)
{
int i, comp = 0;
char outputpath[MAX_PATH] = "";
char filename[MAX_PATH] = "unknown";
static char outputpath[MAX_PATH] = "";
static char filename[MAX_PATH] = "unknown";
quakefile_t *qfiles = NULL, *qf;
double start_time;
char *ent_str;