vere: replace dprintf (missing on MingW) with snprintf+write

This commit is contained in:
~locpyl-tidnyd 2021-03-27 20:15:17 +00:00
parent d31d6f656f
commit 6ed4b7077b

View File

@ -1605,11 +1605,12 @@ _http_write_ports_file(u3_httd* htd_u, c3_c *pax_c)
u3_http* htp_u = htd_u->htp_u;
c3_c temp[32];
while ( 0 != htp_u ) {
if ( 0 < htp_u->por_s ) {
dprintf(por_i, "%u %s %s\n", htp_u->por_s,
write(por_i, temp, snprintf(temp, 32, "%u %s %s\n", htp_u->por_s,
(c3y == htp_u->sec) ? "secure" : "insecure",
(c3y == htp_u->lop) ? "loopback" : "public");
(c3y == htp_u->lop) ? "loopback" : "public"));
}
htp_u = htp_u->nex_u;