Skip to content
Snippets Groups Projects
Commit 5af778ba authored by SteelT's avatar SteelT
Browse files

Fix M_FindResponseFile returning garbage data

parent 650e0eaf
No related branches found
No related tags found
2 merge requests!488Merge in next and don't billboard papersprites in GL,!254Fix M_FindResponseFile returning garbage data
......@@ -198,17 +198,16 @@ void M_FindResponseFile(void)
k++;
} while (k < size);
free(file);
for (k = 0; k < pindex; k++)
myargv[indexinfile++] = moreargs[k];
myargc = indexinfile;
// display arguments
CONS_Printf(M_GetText("%d command-line args:\n"), myargc);
CONS_Printf(M_GetText("%d command-line args:\n"), myargc-1); // -1 so @ don't actually get counted for
for (k = 1; k < myargc; k++)
CONS_Printf("%s\n", myargv[k]);
break;
free(file); // Needs to be called after everything else, or we would end up with garbage data
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment