mgetl: fix single line without EOL
[scilab.git] / scilab / modules / fileio / src / cpp / mgetl.cpp
index d0c7f80..334ee4e 100644 (file)
@@ -190,6 +190,12 @@ int mgetl(int iFileID, int iLineCount, wchar_t ***pwstLines)
                 }
             }
         }
+
+        if (previous.size())
+        {
+            lst.push_back(previous);
+            previous.clear();
+        }
     }
     else
     {