commit 6108e77593e71f070dfc86a3e07a2cbb8cb194a6 from: Tracey Emery date: Fri Apr 26 21:36:37 2019 UTC Send actual length of thing and client names. commit - 93b81d99dabea5307036e5b13900c08bc729e1c6 commit + 6108e77593e71f070dfc86a3e07a2cbb8cb194a6 blob - 2f51d26b1c193a607e84884751c008f6bf120315 blob + 7248b37f2a121a342ea452f17f1bd2768d3f5f3b --- thingsctl/thingsctl.c +++ thingsctl/thingsctl.c @@ -123,11 +123,11 @@ main(int argc, char *argv[]) switch (res->action) { case SHOW_PKTS: imsg_compose(ibuf, IMSG_SHOW_PKTS, 0, 0, -1, - res->thg_name, sizeof(res->thg_name)); + res->thg_name, strlen(res->thg_name)); break; case KILL_CLT: imsg_compose(ibuf, IMSG_KILL_CLT, 0, 0, -1, - res->clt_name, sizeof(res->clt_name)); + res->clt_name, strlen(res->clt_name)); printf("kill request for client \"%s\" sent\n", res->clt_name); done = 1; break;