From 8b94bb56c3de7aca1faa2cdfd3b65ff76baaf025 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 25 Feb 2026 00:01:08 -0800 Subject: [PATCH] Fix missing +1 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cce9fea..4c3024e 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ function decodeCBOR(cbor) { let structure; if (byte >= 0x40 && byte <= 0x57) { // bytes const len = byte - 0x40; - const bytes = cbor.slice(i + 1, i + len); + const bytes = cbor.slice(i + 1, i + 1 + len); i += len; structure = bytes; } -- 2.47.3