This commit is contained in:
jl777
2016-10-26 12:12:38 -03:00
parent 878412dfc8
commit 795751ec56

View File

@@ -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)