From 42f6971745923c727ce3483e4d15bc001cc6d5ee Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 4 Dec 2020 16:03:26 +1030 Subject: [PATCH] don't NUL terminate when encoding --- ez-blob-basic.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ez-blob-basic.c b/ez-blob-basic.c index c0da23a..9378577 100644 --- a/ez-blob-basic.c +++ b/ez-blob-basic.c @@ -177,8 +177,6 @@ void *ez_basic_decode(const ez_blob_desc *d, const ez_blob *blob) { int ez_basic_encode_raw(const ez_blob_desc *desc, const void *p, ez_blob *blob) { char *b = blob->eb_data; - size_t size = blob->eb_size; - char *be = b+size; for (int i=0,dlen=desc->bd_length;ieb_size + blob->eb_data) + abort(); return 0; } -- 2.39.5