the databuffer is reused so it might contain junk, therefore only use the
available amount of bytes
(duck)
This commit is contained in:
duck
2004-05-26 12:25:04 +00:00
committed by zzz
parent 8d7abd8298
commit 05918de6ab

View File

@ -758,7 +758,7 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
msg.write(("STREAM RECEIVED ID=" + id msg.write(("STREAM RECEIVED ID=" + id
+" SIZE=" + len + "\n").getBytes("ISO-8859-1")); +" SIZE=" + len + "\n").getBytes("ISO-8859-1"));
msg.write(data); msg.write(data, 0, len);
writeBytes(msg.toByteArray()); writeBytes(msg.toByteArray());
} }