accidentally changed this makefile, roll it back
[IRC.git] / Robust / src / ClassLibrary / SocketInputStream.java
index 97afc287737ac694adddbd63afff52b5f52716d9..0d12a4cd38f7a6be9cf2956a7c7be9cf432eda55 100644 (file)
@@ -17,21 +17,21 @@ public class SocketInputStream extends InputStream {
   }
 
   public int readAll(byte[] b) {
-      int offset=read(b);
-      if (offset<0)
-         return offset;
-      int toread=b.length-offset;
-      while(toread>0) {
-         byte[] t=new byte[toread];
-         int rd=read(t);
-         if (rd<0)
-             return rd;
-         for(int i=0;i<rd;i++)
-             b[i+offset]=t[i];
-         offset+=rd;
-         toread-=rd;
-      }
-      return b.length;
+    int offset=read(b);
+    if (offset<0)
+      return offset;
+    int toread=b.length-offset;
+    while(toread>0) {
+      byte[] t=new byte[toread];
+      int rd=read(t);
+      if (rd<0)
+        return rd;
+      for(int i=0; i<rd; i++)
+        b[i+offset]=t[i];
+      offset+=rd;
+      toread-=rd;
+    }
+    return b.length;
   }
 
   public void close() {