summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip-???-cat.mediawiki3
1 files changed, 2 insertions, 1 deletions
diff --git a/bip-???-cat.mediawiki b/bip-???-cat.mediawiki
index 6833621..584f697 100644
--- a/bip-???-cat.mediawiki
+++ b/bip-???-cat.mediawiki
@@ -50,8 +50,9 @@ case OP_CAT:
}
valtype& vch1 = stacktop(-2);
valtype& vch2 = stacktop(-1);
- if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE)
+ if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE) {
return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION);
+ }
vch1.insert(vch1.end(), vch2.begin(), vch2.end());
stack.pop_back();
}