Fix upload
This commit is contained in:
parent
f3d47433e1
commit
db3796c384
@ -81,7 +81,7 @@ public class ClientManagementUDP implements Runnable {
|
||||
switch (r[1]) {
|
||||
case "LOAD":
|
||||
int size = Integer.parseInt(r[2]);
|
||||
if (r[3].length() != size + 1) {
|
||||
if (r[3].length() != size - 1) {
|
||||
throw new TransmissionError();
|
||||
}
|
||||
FileWriter fileWriter = new FileWriter(baseDirectory + filename);
|
||||
|
Loading…
Reference in New Issue
Block a user