commit 34aba5f756abc04d5b4c77c22c6baf195a472522 from: Omar Polo date: Fri Aug 06 20:09:33 2021 UTC convert len to le32! commit - db7864879c00d95cfba9d607a47a53cce37b37b2 commit + 34aba5f756abc04d5b4c77c22c6baf195a472522 blob - bca55cf7f6bc0c1ff3168c8b4f1ca4435e74fd5f blob + 39be115836d70a90186dd39b811dea75652428b7 --- script.c +++ script.c @@ -1105,7 +1105,9 @@ builtin_send(int argc) if ((buf = imsg_create(&ibuf, IMSG_BUF, 0, 0, len)) == NULL) fatal("imsg_create(%d)", len); + len = htole32(len); imsg_add(buf, &len, sizeof(len)); + for (i = argc; i > 0; --i) { peekn(i, &v); switch (v.type) {