have linear-type-safe source codes of mp3decoder
[IRC.git] / Robust / src / ClassLibrary / SSJava / String.java
index ddacb966d41c17cdedf9425d5bf1087f645a4044..7bbb303bb622471149580d063a5dc5af9abd7299 100644 (file)
@@ -129,7 +129,6 @@ public class String {
     String newstr=new String();
     newstr.count=this.count+str.count;
     char charstr[]=new char[newstr.count];
-    newstr.value=charstr;
     newstr.offset=0;
     for(int i=0; i<count; i++) {
       charstr[i]=value[i+offset];
@@ -137,6 +136,7 @@ public class String {
     for(int i=0; i<str.count; i++) {
       charstr[i+count]=str.value[i+str.offset];
     }
+    newstr.value=charstr;
     return newstr;
   }