From: Not Zed Date: Fri, 4 Dec 2020 05:33:26 +0000 (+1030) Subject: don't NUL terminate when encoding X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=42f6971745923c727ce3483e4d15bc001cc6d5ee;p=libeze don't NUL terminate when encoding --- 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; }