Caue Waneck 13 years ago
parent
commit
01f9f51341
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/io/BytesInput.hx

+ 2 - 2
std/haxe/io/BytesInput.hx

@@ -83,11 +83,11 @@ class BytesInput extends Input {
 			if( len > avail && avail > 0 ) len = avail;
 			try b.readBytes(buf.getData(),pos,len) catch( e : Dynamic ) throw new Eof();
 		#elseif java
-			java.lang.System.arraycopy(this.b, this.pos, buf, pos, len);
+			java.lang.System.arraycopy(this.b, this.pos, buf.getData(), pos, len);
 			this.pos += len;
 			this.len -= len;
 		#elseif cs
-			system.Array.Copy(this.b, this.pos, bùf, pos, len);
+			system.Array.Copy(this.b,this.pos, buf.getData(), pos, len);
 			this.pos += len;
 			this.len -= len;
 		#else