From df5938017da1c851dd0c5aa20f9c57ce02a9c370 Mon Sep 17 00:00:00 2001
From: Lucio Zambon <lucio.zambon@elettra.eu>
Date: Fri, 6 Dec 2024 10:03:34 +0100
Subject: [PATCH] add terminator

---
 src/Fug.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Fug.cpp b/src/Fug.cpp
index 5fc8e20..4ca0721 100644
--- a/src/Fug.cpp
+++ b/src/Fug.cpp
@@ -912,6 +912,7 @@ string Fug::read_Fug() {
 
   i = 0;
   while (strout[i] == 'E') {
+    if (strout[i+3] == '\n' || strout[i+3] == '\r' || strout[i+3] == '\0') i++;
     i += 3;
   }
   strout_filt.resize(strout.length() - i);
-- 
GitLab