From: <ha...@us...> - 2007-09-10 02:37:14
|
Revision: 8231 http://jmol.svn.sourceforge.net/jmol/?rev=8231&view=rev Author: hansonr Date: 2007-09-09 19:37:07 -0700 (Sun, 09 Sep 2007) Log Message: ----------- version=11.3.18 # critical bug fix for 11.3.17 -- limited set command length Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Compiler.java Modified: trunk/Jmol/src/org/jmol/viewer/Compiler.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Compiler.java 2007-09-09 23:49:55 UTC (rev 8230) +++ trunk/Jmol/src/org/jmol/viewer/Compiler.java 2007-09-10 02:37:07 UTC (rev 8231) @@ -1047,7 +1047,10 @@ } size -= nDefined; - + if (isNewSet && size < 3) + return commandExpected(); + if (isSetOrDefine) //intValue is NOT of this nature + return true; int allowedLen = (tokenCommand.intValue & 0x0F) + 1; if (!tokAttr(tokenCommand.intValue, Token.varArgCount)) { if (size > allowedLen) @@ -1058,8 +1061,6 @@ // max2, max3, max4, etc. return badArgumentCount(); } - if (isNewSet && size < 3) - return commandExpected(); return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |