typo; use the `l' variable not `len'

This commit is contained in:
Omar Polo 2023-06-23 21:03:24 +00:00
parent f29d705e04
commit ab55c7815e
2 changed files with 2 additions and 2 deletions

2
ge.c
View File

@ -81,7 +81,7 @@ log_request(struct client *c, char *meta, size_t l)
}
if ((t = memchr(meta, '\r', l)) == NULL)
t = meta + len;
t = meta + l;
fprintf(stderr, "%s:%s GET %s %.*s\n", hbuf, sbuf, b,
(int)(t-meta), meta);

2
gmid.c
View File

@ -124,7 +124,7 @@ log_request(struct client *c, char *meta, size_t l)
}
if ((t = memchr(meta, '\r', l)) == NULL)
t = meta + len;
t = meta + l;
ec = asprintf(&fmted, "%s:%s GET %s %.*s", hbuf, sbuf, b,
(int)(t-meta), meta);