From 4b564435f1683b43bd55a1b88b56ccf93fbacabf Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Thu, 19 Oct 2023 13:50:02 +0200 Subject: [PATCH] fix misencoding of query body --- src/protocol/codec/message.c | 2 +- zenohpico.pc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/protocol/codec/message.c b/src/protocol/codec/message.c index 8a529400d..ad4279fe8 100644 --- a/src/protocol/codec/message.c +++ b/src/protocol/codec/message.c @@ -401,7 +401,7 @@ int8_t _z_query_encode(_z_wbuf_t *wbf, const _z_msg_query_t *msg) { _Z_RETURN_IF_ERR(_z_uint8_encode(wbf, extheader)); _Z_RETURN_IF_ERR(_z_zint_encode(wbf, _z_zint_len(msg->_ext_value.encoding.prefix) + _z_bytes_encode_len(&msg->_ext_value.encoding.suffix) + - _z_bytes_encode_len(&msg->_ext_value.payload))); + msg->_ext_value.payload.len)); _Z_RETURN_IF_ERR(_z_encoding_prefix_encode(wbf, msg->_ext_value.encoding.prefix)); _Z_RETURN_IF_ERR(_z_bytes_encode(wbf, &msg->_ext_value.encoding.suffix)); _Z_RETURN_IF_ERR(_z_bytes_val_encode(wbf, &msg->_ext_value.payload)); diff --git a/zenohpico.pc b/zenohpico.pc index 5282169f0..bcc1e5d18 100644 --- a/zenohpico.pc +++ b/zenohpico.pc @@ -1,8 +1,8 @@ -prefix=/var/empty/local +prefix=/usr/local Name: zenohpico Description: URL: -Version: 0.11.20231017dev +Version: 0.11.20231019dev Cflags: -I${prefix}/include -Libs: -L${prefix}/lib64 -lzenohpico +Libs: -L${prefix}/lib -lzenohpico