ref: 12530f4c386dc481ebe76db1f0733ba6df37cc13
parent: be84ca6fe75bf5b400d1247a57edf0390a7c19e1
author: grobe0ba <grobe0ba@tcp80.org>
date: Mon Aug 1 16:10:12 EDT 2022
tiny clean up in redirerr
--- a/tcp80.c
+++ b/tcp80.c
@@ -412,8 +412,7 @@
respond(status);
headers(buf, d);
- snprint(buf, sizeof(buf), "/%d", istatus);
- strncat(buf, location, sizeof(buf));
+ snprint(buf, sizeof(buf), "/%d%s", istatus, location);
h = findhdr(nil, "Host");
p = strchr(location, '?');