From 4c745dab4c6925fa17714c2214ed5941e5cbf64d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 20 Feb 2025 20:24:28 +0100 Subject: Validate unmarshalled state + add man pages for (un)marshal functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput_marshal_text__.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libterminput_marshal_text__.c') diff --git a/libterminput_marshal_text__.c b/libterminput_marshal_text__.c index fa9b542..264ec04 100644 --- a/libterminput_marshal_text__.c +++ b/libterminput_marshal_text__.c @@ -3,10 +3,10 @@ int -libterminput_marshal_text__(struct libterminput_marshaller *how, const struct libterminput_text *what) +libterminput_marshal_text__(struct libterminput_marshaller *how, const struct libterminput_text *what) /* TODO test */ { if (how->store(how, &what->nbytes, sizeof(what->nbytes)) || - how->store(how, what->bytes, sizeof(what->nbytes))) + how->store(how, what->bytes, what->nbytes)) return -1; return 0; } -- cgit v1.2.3-70-g09d2