change on fatalx -> log_warnx

we already check the validity of the format string, but still avoid a
gratious fatal() at runtime.
This commit is contained in:
Omar Polo 2023-07-01 14:22:26 +00:00
parent 80192f4589
commit e3ce19dcc1
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ fmtbuf(char *buf, size_t buflen, const char *fmt, struct client *c,
strlcat(buf, c->domain, buflen);
break;
default:
fatalx("%s: unknown fmt specifier %c",
log_warnx("%s: unknown fmt specifier %c",
__func__, *fmt);
}
}