Fix upload

This commit is contained in:
Louis Royer 2020-01-21 10:57:27 +01:00
parent f3d47433e1
commit db3796c384

View File

@ -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);