aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-23 21:03:24 +0000
committerOmar Polo <op@omarpolo.com>2023-06-23 21:03:24 +0000
commitab55c7815e8e749e775d95c26f0e217744949285 (patch)
tree4c372aa954a6f8d288fd00631423405d2a7d6cb2 /gmid.c
parentf29d705e04b5fdb74980622803ddff3adb9fb09d (diff)
typo; use the `l' variable not `len'
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index 9ba75c7..22d82b9 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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);