From 65ba699b8c0fe0a7e93b5d66e307938ecc4214e5 Mon Sep 17 00:00:00 2001
From: Thomas Oster <thomas.oster@rwth-aachen.de>
Date: Fri, 8 Jun 2012 13:59:02 +0200
Subject: [PATCH] Fix: LAOS: Space in TFTP-Filename leads to BadPacketException
 -> Removed spaces from filenames

---
 src/com/t_oster/liblasercut/drivers/LaosCutter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/com/t_oster/liblasercut/drivers/LaosCutter.java b/src/com/t_oster/liblasercut/drivers/LaosCutter.java
index ebe1963..187b49b 100644
--- a/src/com/t_oster/liblasercut/drivers/LaosCutter.java
+++ b/src/com/t_oster/liblasercut/drivers/LaosCutter.java
@@ -576,7 +576,7 @@ public class LaosCutter extends LaserCutter
       tftp.open();
       pl.taskChanged(this, "sending");
       ByteArrayInputStream bain = new ByteArrayInputStream(buffer.toByteArray());
-      tftp.sendFile(job.getName()+".lgc", TFTP.BINARY_MODE, bain, this.getHostname(), this.getPort());
+      tftp.sendFile(job.getName().replace(" ", "") +".lgc", TFTP.BINARY_MODE, bain, this.getHostname(), this.getPort());
       tftp.close();
       bain.close();
       pl.taskChanged(this, "sent.");
-- 
GitLab