aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-10-18 10:05:55 +0000
committerOmar Polo <op@omarpolo.com>2021-10-18 10:05:55 +0000
commit4842c72d9f3f45478cb641e15a3272e541fb8a18 (patch)
tree1a1b840362a8e78f6a71c67bce0d7157e0848cb5 /server.c
parentf8bcc13822154d8558246c9f994cf43c413a5714 (diff)
fmt
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index 9bd17a3..88fcc70 100644
--- a/server.c
+++ b/server.c
@@ -540,7 +540,7 @@ static void
fmt_sbuf(const char *fmt, struct client *c, const char *path)
{
size_t i;
- char buf[32];
+ char buf[32];
memset(buf, 0, sizeof(buf));
for (i = 0; *fmt; ++fmt) {
@@ -794,7 +794,7 @@ open_dir(struct client *c)
c->diroff = 0;
c->off = 0;
- start_reply(c, SUCCESS, "text/gemini");
+ start_reply(c, SUCCESS, "text/gemini");
evbuffer_add_printf(EVBUFFER_OUTPUT(c->bev),
"# Index of %s\n\n", c->iri.path);
return;
@@ -1093,7 +1093,7 @@ start_reply(struct client *c, int code, const char *meta)
c->type != REQUEST_FCGI &&
!strcmp(meta, "text/gemini") &&
(lang = vhost_lang(c->host, c->iri.path)) != NULL) {
- rr = evbuffer_add_printf(evb, ";lang=%s", lang);
+ rr = evbuffer_add_printf(evb, ";lang=%s", lang);
if (rr == -1)
goto err;
if (r + rr > 1027)