# HG changeset patch # User Steve Losh # Date 1314831053 14400 # Node ID 336987d72de4562ae7bd88e07b764c70fa2cf775 # Parent 674073671e6c6a51e5993c82734b6328c185b382 Dear Java: you are an asshole. diff -r 674073671e6c -r 336987d72de4 src/clojurecraft/in.clj --- a/src/clojurecraft/in.clj Wed Aug 31 18:50:37 2011 -0400 +++ b/src/clojurecraft/in.clj Wed Aug 31 18:50:53 2011 -0400 @@ -30,7 +30,7 @@ (defn- -read-bytearray-bare [conn size] (io! (let [ba (byte-array size)] - (.read ^DataInputStream (:in @conn) ba 0 size) + (.readFully ^DataInputStream (:in @conn) ba 0 size) ba))) (defn- -read-bytearray [conn size]