commit 413c8eebf3e1ed6df15a01a53a0a7c3526d3304f
parent 60e367cc98091b493ed922e5918b113e23ac2e29
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 9 Feb 2022 23:07:00 +0100
Fix wrong parsing in recv_namesend()
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/circo.c b/circo.c
@@ -1142,17 +1142,13 @@ recv_names(char *host, char *par, char *names) {
void
recv_namesend(char *host, char *par, char *names) {
- Buffer *b;
- char *chan;
-
- par = skip(par, ' ');
- chan = skip(par, ' ');
- b = getbuf(chan);
+ char *chan = skip(par, ' ');
+ Buffer *b = getbuf(chan);
if(!b)
b = status;
if(!b->recvnames) {
- bprintf(sel, "%s: no names\n", par);
+ bprintf(sel, "%s: no names\n", chan);
return;
}
b->recvnames = 0;