int diff = origseq.getLength() - sq.length();\r
while (diff > 0)\r
{\r
- sq = sq\r
- + ((diff >= sb.length()) ? sb.toString() : sb\r
- .substring(0, diff));\r
+ //sq = sq\r
+ // + ((diff >= sb.length()) ? sb.toString() : sb\r
+ // .substring(0, diff));\r
+ if (diff>=sb.length()) {\r
+ sq+=sb.toString();\r
+ } else {\r
+ char[] buf = new char[diff];\r
+ sb.getChars(0, diff, buf, 0);\r
+ sq+=buf.toString();\r
+ }\r
diff = origseq.getLength() - sq.length();\r
}\r
}\r