diff --git a/src/cn-create.c b/src/cn-create.c index 4ddce3b..b2f822c 100644 --- a/src/cn-create.c +++ b/src/cn-create.c @@ -36,7 +36,7 @@ cn_cbor* cn_cbor_data_create(const uint8_t* data, int len ret->type = CN_CBOR_BYTES; ret->length = len; - ret->v.str = (const char*) data; // TODO: add v.ustr to the union? + ret->v.bytes = data; return ret; }