From 795751ec56634fa820f6c3435f3c1871b99c410f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 26 Oct 2016 12:12:38 -0300 Subject: [PATCH] test --- src/komodo_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index cc93eac95..fd2e5dee0 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -958,9 +958,9 @@ int32_t komodo_opreturnscript(uint8_t *script,uint8_t type,uint8_t *opret,int32_ script[offset++] = opretlen; } } else script[offset++] = opretlen; - script[offset] = type; // covered by opretlen - memcpy(&script[offset],opret,opretlen); - return(opretlen + offset); + script[offset++] = type; // covered by opretlen + memcpy(&script[offset],opret,opretlen-1); + return(offset + opretlen - 1); } long _stripwhite(char *buf,int accept)