336987d72de4

Dear Java: you are an asshole.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 31 Aug 2011 18:50:53 -0400
parents 674073671e6c
children c14f3512a6ee
branches/tags (none)
files src/clojurecraft/in.clj

Changes

--- 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]