X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=test.c;h=5ee02c344eb834dfe995e7d8f0d2945d1a49eb5b;hp=d853f41f09704927f91dddeed8c9e723d833d6bd;hb=46752af74b8553b4a0a6d8928a823289308c6f8a;hpb=8f2a22b8c35470e5a59db42ea346d06480f25b81 diff --git a/test.c b/test.c index d853f41..5ee02c3 100644 --- a/test.c +++ b/test.c @@ -679,7 +679,8 @@ bool task_propagate(const char *curdir, size_t *pad, const char *defs) { * Generate a temportary file name for the output binary * so we don't trample over an existing one. */ - tmpl->tempfilename = tempnam(curdir, "TMPDAT"); + tmpl->tempfilename = NULL; + util_asprintf(&tmpl->tempfilename, "%s/TMPDAT.%s", curdir, files->d_name); /* * Additional QCFLAGS enviroment variable may be used