code hint fixes

This commit is contained in:
2015-01-19 12:18:49 +01:00
parent e4e9676081
commit df518ff503
6 changed files with 51 additions and 40 deletions
+4 -1
View File
@@ -67,7 +67,10 @@ public class MetaData {
requestSize = cis.readInt32();
infoSize = cis.readInt32();
byte req[] = new byte[(int) requestSize];
cis.read(req);
if (cis.read(req) != req.length) {
throw new IOException();
}
request = new String(req, 0, (int) requestSize - 1/*Ends with char 0*/);
byte res[] = new byte[(int) infoSize];
cis.read(res);