Commit 0383eb4c authored by Marco Buttu's avatar Marco Buttu
Browse files

Fix issue 785

parent 0fb8889b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -154,6 +154,10 @@ protected:
	 * number of schedule lines
	*/
	DWORD m_lines;
	/**
	 * schedule file name (i.e: myschedule.scd)
	 */
	IRA::CString m_scheduleName;
	/**
	 * file name
	 */
+3 −2
Original line number Diff line number Diff line
@@ -96,9 +96,10 @@ bool CParser::parse(CBaseSchedule* unit,DWORD& line,IRA::CString& errorMsg)
//CBaseSchedule

CBaseSchedule::CBaseSchedule(const IRA::CString& path,const IRA::CString& fileName) : m_lines(0), m_fileName(""),
		m_filePath(path), m_baseName(""),m_lastError(""),m_config(NULL)
		m_scheduleName(""),m_filePath(path), m_baseName(""),m_lastError(""),m_config(NULL)
{
	m_parser=new CParser;
	m_scheduleName=fileName;
	m_fileName=m_filePath+fileName;
	int pos=fileName.Find('.');
	m_baseName=fileName.Mid(0,pos);
@@ -112,7 +113,7 @@ CBaseSchedule::~CBaseSchedule()
bool CBaseSchedule::readAll(bool check)
{
	IRA::CString err;
	if (m_fileName.GetLength()>MAX_SCHED_NAME_LEN) {
	if (m_scheduleName.GetLength()>MAX_SCHED_NAME_LEN) {
		m_lastError.Format("Schedule name exceeds the maximum allowed characters of %d",MAX_SCHED_NAME_LEN);
		return false;
	}