Change filename order in srv_archive_error().

This commit is contained in:
default 2023-08-11 22:05:56 +02:00
parent 36ee16db1d
commit 70b014606b

2
data.c
View File

@ -2572,7 +2572,7 @@ void srv_archive_error(const char *prefix, const xs_str *err,
/* archives an error */ /* archives an error */
{ {
xs *ntid = tid(0); xs *ntid = tid(0);
xs *fn = xs_fmt("%s/error/%s_%s", srv_basedir, prefix, ntid); xs *fn = xs_fmt("%s/error/%s_%s", srv_basedir, ntid, prefix);
FILE *f; FILE *f;
if ((f = fopen(fn, "w")) != NULL) { if ((f = fopen(fn, "w")) != NULL) {