Skip to content

Commit

Permalink
Fix issue #3 : set max name length to 1023
Browse files Browse the repository at this point in the history
  • Loading branch information
khalahan committed May 31, 2012
1 parent 5997a75 commit 85a7f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
//
if (!script.GetOp(pc, opcode, vchPushValue))
return false;
if (vchPushValue.size() > 520)
if (vchPushValue.size() > 1023)
return false;
if (opcode > OP_16 && ++nOpCount > 201)
return false;
Expand Down

0 comments on commit 85a7f5e

Please sign in to comment.